IO: Fix LedCounter example

This commit is contained in:
gohai
2016-05-05 19:26:57 +02:00
parent f1077d0a86
commit ef1490566b
@@ -22,9 +22,9 @@ void draw() {
// make the LEDs count in binary
for (int i=0; i < leds.length; i++) {
if ((frameCount & (1 << i)) != 0) {
leds[i].set(1.0);
leds[i].brightness(1.0);
} else {
leds[i].set(0.0);
leds[i].brightness(0.0);
}
}
println(frameCount);