Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ESP32 support in example InterruptRotator.ino #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/InterruptRotator/InterruptRotator.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
*/
Expand Down
Loading