mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
IO: Fix LedCounter example
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user