You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index= (255-i*256/NUM_AUDIO_LEDS) *index/128; // Now we need to scale index so that it gets blacker as we get close to one of the ends
24
24
// This is a simple y=mx+b equation that's been scaled. index/128 is another scaling.
25
-
ledsAudio[i] =ColorFromPalette(currentPalette, index, sampleavg, NOBLEND); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
25
+
ledsAudio[i] =ColorFromPalette(palette, index, sampleavg, NOBLEND); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
26
26
} // The higher the value of i => the higher up the palette index (see palette definition).
ledsAudio[NUM_AUDIO_LEDS/2-i/2+1] =ColorFromPalette(currentPalette, index, sampleavg, NOBLEND); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
38
-
ledsAudio[NUM_AUDIO_LEDS/2+i/2-1] =ColorFromPalette(currentPalette, index, sampleavg, NOBLEND); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
37
+
ledsAudio[NUM_AUDIO_LEDS/2-i/2+1] =ColorFromPalette(palette, index, sampleavg, NOBLEND); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
38
+
ledsAudio[NUM_AUDIO_LEDS/2+i/2-1] =ColorFromPalette(palette, index, sampleavg, NOBLEND); // With that value, look up the 8 bit colour palette value and assign it to the current LED.
39
39
40
40
} // The higher the value of i => the higher up the palette index (see palette definition).
0 commit comments