Only a few pins are available for setWatch. Its checked with jshCanWatch in targets/ESP32/jshardware.c Just checked with D12 and that works.
bool jshCanWatch( Pin pin //!< The pin that we are asking whether or not we can watch it. ) { return pin == 0 || ( pin >= 12 && pin <= 19 ) || pin == 21 || pin == 22 || ( pin >= 25 && pin <= 27 ) || ( pin >= 34 && pin <= 39 ); }
@JumJum 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.
Only a few pins are available for setWatch. Its checked with jshCanWatch in targets/ESP32/jshardware.c
Just checked with D12 and that works.