Thanks - well that's an odd one.
What happens if you do:
var onWatch = function() { print("XXX"); }; setWatch(onWatch, D22, {repeat:true, edge:'both' }); pinMode(D22, "input_pulldown");
... so swapping the two around? It's possible that on ESP32 setting the pin mode disables the watch somehow when it shouldn't?
@Gordon 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.
Thanks - well that's an odd one.
What happens if you do:
... so swapping the two around? It's possible that on ESP32 setting the pin mode disables the watch somehow when it shouldn't?