Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
The expected output is wrong, but I checked the library reference and the
setLEDs method was wrongfully documented.
The input is not a byte but a word (16 bits, one for each LED): the most
significant byte is for the green LEDs and the least significant byte is for
the red LEDs.
This will set all the LEDs red:
module.setLEDs(0xFF);
This will set all the LEDs green:
module.setLEDs(0xFF00);
This will set alternating red and green LEDs:
module.setLEDs(0b0101010110101010);
Original comment by rjbati...@gmail.com
on 15 Dec 2011 at 10:44
Original issue reported on code.google.com by
dacomput...@gmail.com
on 15 Dec 2011 at 10:24