I am working on a project that uses the HID features on BLE. In particular, I want to send a character (volume up) each time a button is pressed. This is my code:
In Espruino Web IDE, configure the option Save on send - Direct to flash (execute code at boot).
Upload the code.
Disconnect from the PC
Connect to device and work.
But when I remove the battery and put it back on (without pressing BTN), the three LEDs start flashing at the same time and the program does not work and any device recognize it (PC or mobile) until I do a Hard reset.
Can anyone tell me what it means to have the three LEDs blink at the same time?
What can I do to save my program and not be deleted when I change the battery?
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.
Hi at all!
I am working on a project that uses the HID features on BLE. In particular, I want to send a character (volume up) each time a button is pressed. This is my code:
To save the program I follow this step:
But when I remove the battery and put it back on (without pressing BTN), the three LEDs start flashing at the same time and the program does not work and any device recognize it (PC or mobile) until I do a Hard reset.
Can anyone tell me what it means to have the three LEDs blink at the same time?
What can I do to save my program and not be deleted when I change the battery?
Thank you very much in advance