Remove unused variable
This commit is contained in:
parent
1c627ded6b
commit
df7c0fae67
1 changed files with 8 additions and 9 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue