We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5667576 commit ee648e2Copy full SHA for ee648e2
examples/InterruptRotator/InterruptRotator.ino
@@ -38,6 +38,10 @@
38
#define PIN_IN1 D5
39
#define PIN_IN2 D6
40
41
+#elif defined(ESP32)
42
+// Example for ESP8266 NodeMCU with input signals on pin D5 and D6
43
+#define PIN_IN1 35
44
+#define PIN_IN2 37
45
#endif
46
47
// A pointer to the dynamic created rotary encoder instance.
@@ -51,7 +55,7 @@ void checkPosition()
51
55
encoder->tick(); // just call tick() to check the state.
52
56
}
53
57
54
-#elif defined(ESP8266)
58
+#elif defined(ESP8266) || defined(ESP32)
59
/**
60
* @brief The interrupt service routine will be called on any change of one of the input signals.
61
*/
0 commit comments