Skip to content

Commit

Permalink
Fixed error where test sites weren't updating LEDS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismelba committed Jul 19, 2016
1 parent 6b6ccc0 commit 150cac6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lightclockwifi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ void setUpServerHandle() {

void speedup() {
speed++;
speed = speed%2;
speed = speed%3;
server.send(200, "text/html", "Speed Up: " + speed);

}
Expand Down Expand Up @@ -1501,8 +1501,8 @@ void updateface() {
break;

case 2:
hour_pos = (((second()/10 + (6*(minute()%2))) % 12) * pixelCount / 12);
min_pos = (second() % 10 * 6 * pixelCount / 60 + millis() / 1000 * 6);
hour_pos = ((10 % 12) * pixelCount / 12 + 10 * pixelCount / 720);
min_pos = (10 * pixelCount / 60 + 0 * pixelCount / 3600);;
break;
}

Expand Down Expand Up @@ -1950,7 +1950,7 @@ void dawntest() {
}
}


clockleds->Show();
delay(100);
}
for (int j = 0; j < pixelCount; j++) {
Expand Down Expand Up @@ -1984,7 +1984,7 @@ void moontest() {
clockleds->SetPixelColor((i + 2 * pixelCount - startPos) % pixelCount, bright, bright, bright); //add in start pos and % to offset to one side
}
}

clockleds->Show();
delay(1000);
}

Expand Down Expand Up @@ -2045,7 +2045,7 @@ void lightup() {
clockleds->SetPixelColor(j, 0, 0, 0); //blacken the LED if it's dark in the array
}
}

clockleds->Show();
delay(_max((pow(pixelCount - i, 7) / pow(pixelCount, 7)) * 1000, 40));

}
Expand Down

0 comments on commit 150cac6

Please sign in to comment.