Turns the red LED off.
Use led.on
to turn the red LED back on.
onBoardEvent("buttonR", "down", function(event) { led.off(); });
onBoardEvent("toggleSwitch", "open", function(event) { led.on(); }); onBoardEvent("toggleSwitch", "closed", function(event) { led.off(); });
led.off()
Found a bug in the documentation? Let us know at documentation@code.org