Only a few pins are available for setWatch. Its checked with jshCanWatch in targets/ESP32/jshardware.c
Just checked with D12 and that works.
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 );
© Espruino, powered by microcosm.
Report a problem