You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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?

About

Avatar for Gordon @Gordon started