-
• #2
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 ); }
-
• #3
That solved the problem. Thanks alot!
I tried to use a watch on a esp32 where I got the following error:
I also tried other pins which should work without luck. I am using esruino 2v00 on a esp32s chip. On espruino 2v01 i get the same message.