rebooting two clicks are needed to get to the launcher from the clock.
Ok, I now managed to reproduce by doing ***(edit:*** *see my next reply for additional info re reproducing)*:
1. Flash either
BTN1 is mapped to pin D0 https://github.com/espruino/Espruino/blob/master/boards/MDBT42Q.py#L80
However there is also easy but destructive way, you can clear bootloader settings page containing firmware validity flag and checksum making the firmware invalid and then
BTN1 will go into launcher (danger, i wanna disable this)
2. a 1.5s press on BTN1 will go back to the clock (i.e. no security breach)
3. a 10s press will reboot
BTN1" after a discussion in another thread about maintaining the default behaviour of the button. However, at the current time, the button does cause the light to come on, but it does not enter
reboot time for less than 3 seconds or it enters Espruino but avoids running any js code at startup if you hold it longer (test it now :-), if you put watchdog pinging on BTN2 then
BTN1_PININDEX
dfu_start = get_btn1_state();
#else
```
but I agree that it is somewhat dangerous.
With that one liner in bootloader you enter DFU by `poke32(0x4000051c,1)`, with softdevice enabled it automatically reboots
BTN1 for DFV" screen. After a second, it boots to logo again.
Have a look:
https://www.youtube.com/watch?v=vYRifdvmuQ4
If I press the button, I can sometimes make it enter DFV or stay on the logo
BTN1 for DFU" because it thinks the button is pressed).
Also holding the button prevents watchdog kicking (by design, to have a way to reboot
Search Options
Types to Display
Filters
Order By
Espruino
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.