After looking at lots of examples, I thought it should be put at the top. But perhaps that's the wrong place.
Here's the full error I'm getting now:
>BLE Connected, queueing BLE restart for later
Battery : 100%
=undefined
Uncaught Error: BLE HID not enabled
at line 1 col 55
NRF.sendHIDReport(a,function(){NRF.sendHIDReport(0,b)})
^
in function "b" called from line 1 col 6
b(8,a)
^
in function "playpause" called from line 72 col 26
controls.playpause();
^
in function called from system
>
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.
Here's the code:
After looking at lots of examples, I thought it should be put at the top. But perhaps that's the wrong place.
Here's the full error I'm getting now: