Skip to content

Commit a6e38e9

Browse files
committed
IO: Fix LedCounter example
1 parent 76b6fb0 commit a6e38e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/libraries/io/examples/LedCounter/LedCounter.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ void draw() {
2222
// make the LEDs count in binary
2323
for (int i=0; i < leds.length; i++) {
2424
if ((frameCount & (1 << i)) != 0) {
25-
leds[i].set(1.0);
25+
leds[i].brightness(1.0);
2626
} else {
27-
leds[i].set(0.0);
27+
leds[i].brightness(0.0);
2828
}
2929
}
3030
println(frameCount);

0 commit comments

Comments
 (0)