Gordon, many thanks for the feedback and a useful link to NRF errata!
Installed v2.09, now the code above does not crash and gives 5 rises - perhaps, that's binary 31 as you assume.
Yes, that's right - you can probably change it by manually calling pinMode, but by default setWatch would change the pin state to an input.
On v2.08 pinMode change did not work. But on v2.09 LED lits normally after setWatch :) Watch is not raised.
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.
Gordon, many thanks for the feedback and a useful link to NRF errata!
Installed v2.09, now the code above does not crash and gives 5 rises - perhaps, that's binary 31 as you assume.
On v2.08 pinMode change did not work. But on v2.09 LED lits normally after setWatch :) Watch is not raised.