Skip to content

Commit

Permalink
Started fixing patterns and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
LivingSynthesis authored and Unreal-Dan committed Dec 18, 2024
1 parent 3f01359 commit 4dc95dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VortexEngine/src/Modes/DefaultModes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const default_mode_entry default_modes[MAX_MODES] = {
}
},
{
PATTERN_WARPWORM, 2, {
PATTERN_FILL, 2, {
RGB_GREEN,
0x26004B,
}
Expand Down
6 changes: 3 additions & 3 deletions VortexEngine/src/Patterns/Multi/FillPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ void FillPattern::init()

void FillPattern::blinkOn()
{
Leds::setPairs(PAIR_FIRST, (Pair)m_progress, m_colorset.peekNext());
Leds::setPairs((Pair)m_progress, PAIR_COUNT, m_colorset.cur());
Leds::setRange(LED_FIRST, (LedPos)m_progress, m_colorset.peekNext());
Leds::setRange((LedPos)m_progress, LED_LAST, m_colorset.cur());
}

void FillPattern::poststep()
{
m_progress = (m_progress + 1) % PAIR_COUNT;
m_progress = (m_progress + 1) % LED_COUNT;
if (m_progress == 0) {
m_colorset.getNext();
}
Expand Down

0 comments on commit 4dc95dd

Please sign in to comment.