Skip to content

Commit

Permalink
Fix bass hue offset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
48productions committed Feb 24, 2021
1 parent d16744b commit 24fa654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 02_Update_Funcs.ino
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ void updateIdle() {
} else { //Unnammed Bass VE 1: Bass kicks fade in/out on the strip
float bassLEDSize = getBassSize();
//Serial.println(bassLEDSize);
short hueOffset = 0;
float hueOffset = 0;
for (int i = 0; i < STRIP_BASS_HALF; i++) {
ledsBass[STRIP_BASS_HALF - i - 1] = CHSV(curPalette[0].h - hueOffset, curPalette[0].s, curPalette[0].v * bassLEDSize);
ledsBass[STRIP_BASS_HALF + i] = CHSV(curPalette[0].h - hueOffset, curPalette[0].s, curPalette[0].v * bassLEDSize);
ledsBass[STRIP_BASS_HALF - i - 1] = CHSV((int)(curPalette[0].h - hueOffset), curPalette[0].s, curPalette[0].v * bassLEDSize);
ledsBass[STRIP_BASS_HALF + i] = CHSV((int)(curPalette[0].h - hueOffset), curPalette[0].s, curPalette[0].v * bassLEDSize);
hueOffset += BASS_DELTA; //Offset the hue for a slight gradient across the bass LED strip
}
}
Expand Down

0 comments on commit 24fa654

Please sign in to comment.