diff --git a/tachometer_v1.ino b/tachometer_v1.ino index 70ea905..63e3b1e 100644 --- a/tachometer_v1.ino +++ b/tachometer_v1.ino @@ -106,15 +106,6 @@ void ai0() { if (digitalRead(ENCODER_CLK) == digitalRead(ENCODER_DT)) { counter++; } -} - -// Interrupt service routine for encoder channel B -void ai1() { - // If both signals are different, the encoder is rotating forward - if (digitalRead(ENCODER_CLK) != digitalRead(ENCODER_DT)) { - counter++; - } -} }