Skip to content

Commit

Permalink
Adding weak pull up as option
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed May 29, 2020
1 parent 9710739 commit e1f8c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/Encoder/Encoder.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ void setup(){

ESP32Encoder::useInternalWeakPullResistors=DOWN;
// Enable the weak pull up resistors
ESP32Encoder::useInternalWeakPullResistors=UP;
// set starting count value
//ESP32Encoder::useInternalWeakPullResistors=UP;

// Attache pins for use as encoder pins
encoder.attachHalfQuad(12, 13);
Expand Down
2 changes: 1 addition & 1 deletion src/ESP32Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//static ESP32Encoder *gpio2enc[48];
//
//
bool ESP32Encoder::useInternalWeakPullResistors=DOWN;
enum puType ESP32Encoder::useInternalWeakPullResistors=DOWN;
ESP32Encoder *ESP32Encoder::encoders[MAX_ESP32_ENCODERS] = { NULL, NULL, NULL,
NULL,
NULL, NULL, NULL, NULL };
Expand Down

0 comments on commit e1f8c03

Please sign in to comment.