diff options
-rw-r--r-- | Drehimpulsgeber/drehimp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Drehimpulsgeber/drehimp.cpp b/Drehimpulsgeber/drehimp.cpp index bcd38b8..bd81bca 100644 --- a/Drehimpulsgeber/drehimp.cpp +++ b/Drehimpulsgeber/drehimp.cpp @@ -14,6 +14,10 @@ */ // usually the rotary encoders three pins have the ground pin in the middle + +void doEncoderA(); +void doEncoderB(); + enum PinAssignments { encoderPinA = 2, // rigth encoderPinB = 3, // left @@ -28,7 +32,6 @@ static boolean rotating=false; // debounce management boolean A_set = false; boolean B_set = false; - void setup() { pinMode(encoderPinA, INPUT); |