I know there have been a few goes in Github around the "watch" function (which the rotary encoder module uses behind the scenes), on the ESP32, and generally it works fine for buttons. But when using a full encoder module, such as this one:
.. and these restarts continue until I stop rotating the encoder, after which the ESP32 restarts a last time and continues normal functioning. So any ideas?
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.
Hey Gang,
I know there have been a few goes in Github around the "watch" function (which the rotary encoder module uses behind the scenes), on the ESP32, and generally it works fine for buttons. But when using a full encoder module, such as this one:
https://www.ebay.com/p/5pcs-Ky-040-Rotary-Encoder-Module-for-Arduino-AVR-Pic/1386840178
I get continual restarts on 2v01 (it was the same on previous versions, so its not a regression).
So lets take the standard code from the Espruino example page :
https://www.espruino.com/Encoder
What this causes on my ESP32s is basically this:
.. and these restarts continue until I stop rotating the encoder, after which the ESP32 restarts a last time and continues normal functioning. So any ideas?
Thanks :)
-=hfc