The docs for NRF.setServices() (for Puck.js) contain an example of creating a characteristic for the onboard LEDs.
@Gordon also posted an example of having the button change a characteristic.
@oesterle started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The docs for NRF.setServices() (for Puck.js) contain an example of creating a characteristic for the onboard LEDs.
@Gordon also posted an example of having the button change a characteristic.