Skip to content

Commit

Permalink
Turn off rings for other instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
AEFeinstein committed Dec 3, 2024
1 parent ff1f830 commit fce1112
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main/modes/games/ultimateTTT/ultimateTTT.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ void tttShowUi(tttUi_t ui)

// Assume menu LEDs should be on
setManiaLedsOn(ttt->menuRenderer, true);
setManiaDrawRings(ttt->menuRenderer, true);

// Initialize the new UI
switch (ttt->ui)
Expand Down Expand Up @@ -492,6 +493,7 @@ void tttShowUi(tttUi_t ui)
{
// Turn LEDs off for reading
setManiaLedsOn(ttt->menuRenderer, false);
setManiaDrawRings(ttt->menuRenderer, false);
ttt->bgMenu->title = tttHowToStr;
ttt->pageIdx = 0;
ttt->arrowBlinkTimer = 0;
Expand Down
2 changes: 1 addition & 1 deletion main/modes/music/sequencer/sequencerHelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void drawSequencerHelp(sequencerVars_t* sv, int32_t elapsedUs)
drawMenuMania(sv->bgMenu, sv->menuRenderer, 0);

// Draw text
paletteColor_t textColor = c555;
paletteColor_t textColor = c000;
paletteColor_t outlineColor = c000;
int16_t xOff = TEXT_MARGIN_L;
int16_t yOff = MANIA_TITLE_HEIGHT + 8;
Expand Down
2 changes: 2 additions & 0 deletions main/modes/music/sequencer/sequencerMode.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,14 @@ void setSequencerScreen(sequencerScreen_t screen)
{
// Turn off LEDs for help
setManiaLedsOn(sv->menuRenderer, false);
setManiaDrawRings(sv->menuRenderer, false);
led_t leds[CONFIG_NUM_LEDS] = {0};
setLeds(leds, CONFIG_NUM_LEDS);
}
else
{
// Turn on LEDs for other screens
setManiaLedsOn(sv->menuRenderer, true);
setManiaDrawRings(sv->menuRenderer, true);
}
}

0 comments on commit fce1112

Please sign in to comment.