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

Avatar for JumJum @JumJum started