From ee648e258269aa13aa76868d17934948c1bd5637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Br=C3=A4nnlund?= Date: Tue, 9 Apr 2024 18:37:03 +0200 Subject: [PATCH 1/2] Added ESP32 support in example InterruptRotator.ino Added ESP32 support. --- examples/InterruptRotator/InterruptRotator.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/InterruptRotator/InterruptRotator.ino b/examples/InterruptRotator/InterruptRotator.ino index 846ffbc..a3a3b19 100644 --- a/examples/InterruptRotator/InterruptRotator.ino +++ b/examples/InterruptRotator/InterruptRotator.ino @@ -38,6 +38,10 @@ #define PIN_IN1 D5 #define PIN_IN2 D6 +#elif defined(ESP32) +// Example for ESP8266 NodeMCU with input signals on pin D5 and D6 +#define PIN_IN1 35 +#define PIN_IN2 37 #endif // A pointer to the dynamic created rotary encoder instance. @@ -51,7 +55,7 @@ void checkPosition() encoder->tick(); // just call tick() to check the state. } -#elif defined(ESP8266) +#elif defined(ESP8266) || defined(ESP32) /** * @brief The interrupt service routine will be called on any change of one of the input signals. */ From 1c97ccc5df0734f29aaf6c9c8cf0fbd59f8b3114 Mon Sep 17 00:00:00 2001 From: Matthias Hertel Date: Sat, 25 Oct 2025 14:15:58 +0200 Subject: [PATCH 2/2] docu --- examples/InterruptRotator/InterruptRotator.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/InterruptRotator/InterruptRotator.ino b/examples/InterruptRotator/InterruptRotator.ino index a3a3b19..636be75 100644 --- a/examples/InterruptRotator/InterruptRotator.ino +++ b/examples/InterruptRotator/InterruptRotator.ino @@ -39,7 +39,7 @@ #define PIN_IN2 D6 #elif defined(ESP32) -// Example for ESP8266 NodeMCU with input signals on pin D5 and D6 +// Example for ESP32 with input signals on pins 35 and 37 #define PIN_IN1 35 #define PIN_IN2 37 #endif