Remove unused variable

This commit is contained in:
Melissa LeBlanc-Williams 2023-10-04 11:53:59 -07:00
parent 1c627ded6b
commit df7c0fae67

View file

@ -104,11 +104,10 @@ void loop()
void generateColorWheel(uint16_t *colorWheel) {
float angle;
uint8_t r, g, b;
int index, scaled_index;
int scaled_index;
for(int y = 0; y < 240; y++) {
for(int x = 0; x < 240; x++) {
index = y * 240 + x;
angle = atan2(y - 120, x - 120);
r = uint8_t(127.5 * (cos(angle) + 1));
g = uint8_t(127.5 * (sin(angle) + 1));