Skip to content

Commit

Permalink
some core stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 8, 2023
1 parent 7f06bfb commit 7a8ac8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions VortexEngine/src/Log/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include "VortexLib.h"
#endif

#ifdef VORTEX_EMBEDDED
#include <Arduino.h>
#endif

#if LOGGING_LEVEL > 0
void InfoMsg(const char *msg, ...)
{
Expand Down
11 changes: 6 additions & 5 deletions VortexEngine/src/Patterns/Multi/MeteorPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ void MeteorPattern::blinkOff()

void MeteorPattern::poststep()
{
// when a new meteor is created it is incerted into the stash so the blinking pattern is not interrupted
Pair target = (Pair)m_randCtx.next8(PAIR_FIRST, PAIR_LAST);
RGBColor col = m_colorset.getNext();
m_stash.setIndex(pairEven(target), col);
m_stash.setIndex(pairOdd(target), col);
for (uint8_t meteorCount = 0; meteorCount < (LED_COUNT / 2); ++meteorCount) {
// when a new meteor is created it is incerted into the stash so the blinking pattern is not interrupted
LedPos target = (LedPos)m_randCtx.next8(LED_FIRST, LED_LAST);
RGBColor col = m_colorset.getNext();
m_stash.setIndex(target, col);
}
}

0 comments on commit 7a8ac8d

Please sign in to comment.