From ef1490566b9bdfc551962319a3704ba0353b3c83 Mon Sep 17 00:00:00 2001 From: gohai Date: Thu, 5 May 2016 19:26:57 +0200 Subject: [PATCH] IO: Fix LedCounter example --- java/libraries/io/examples/LedCounter/LedCounter.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/libraries/io/examples/LedCounter/LedCounter.pde b/java/libraries/io/examples/LedCounter/LedCounter.pde index 4bc41e60f..3cd440b19 100644 --- a/java/libraries/io/examples/LedCounter/LedCounter.pde +++ b/java/libraries/io/examples/LedCounter/LedCounter.pde @@ -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);