diff options
| author | Zach DeCook <zachdecook@librem.one> | 2024-06-08 09:43:05 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2024-06-08 09:43:05 -0400 |
| commit | 6beaded1374943a90b1e0e5c244a95132c6b28f1 (patch) | |
| tree | 799fe0335635d1161663652d971fe4e593537b90 | |
| parent | c7821c7cb9026a96367e5301e5b848b29f73eb44 (diff) | |
| download | HexBoard-6beaded1374943a90b1e0e5c244a95132c6b28f1.tar.gz | |
Cleanup unused patch
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Rotary.patch | 21 |
2 files changed, 1 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/Rotary.patch b/Rotary.patch deleted file mode 100644 index 8cb27b4..0000000 --- a/Rotary.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/libraries/Rotary/Rotary.cpp b/libraries/Rotary/Rotary.cpp -index 298925d..9d3a02a 100644 ---- a/libraries/Rotary/Rotary.cpp -+++ b/libraries/Rotary/Rotary.cpp -@@ -127,13 +127,9 @@ Rotary::Rotary(char _pin1, char _pin2) { - // Assign variables. - pin1 = _pin1; - pin2 = _pin2; -- // Set pins to input. -- pinMode(pin1, INPUT); -- pinMode(pin2, INPUT); --#ifdef ENABLE_PULLUPS -- digitalWrite(pin1, HIGH); -- digitalWrite(pin2, HIGH); --#endif -+ // Set pins to input pullup. -+ pinMode(pin1, INPUT_PULLUP); -+ pinMode(pin2, INPUT_PULLUP); - // Initialise state. - state = R_START; - } |
