diff --git a/libraries/Rotary/examples/interrupt/interrupt.ino b/libraries/Rotary/examples/interrupt/interrupt.ino index 4915e8f..e646ab3 100644 --- a/libraries/Rotary/examples/interrupt/interrupt.ino +++ b/libraries/Rotary/examples/interrupt/interrupt.ino @@ -22,6 +22,7 @@ void setup() { } void loop() { + Serial.println(counter); } // rotate is called anytime the rotary inputs change state. @@ -29,10 +30,7 @@ void rotate() { unsigned char result = rotary.process(); if (result == DIR_CW) { counter++; - Serial.println(counter); } else if (result == DIR_CCW) { counter--; - Serial.println(counter); } } -