Turns the specified colorLED off.
This method works just like led.off() and will turn whichever LED is specified off. You can turn the colorLED back on with colorLeds[i].on().
onBoardEvent("buttonL", "press", function(event) {
colorLeds[8].off();
colorLeds[9].off();
});
colorLeds[index].off()
Found a bug in the documentation? Let us know at documentation@code.org