From 461a49534ba91aae767d418c142874adb11c5f8b Mon Sep 17 00:00:00 2001 From: pcgaldo Date: Wed, 19 Jun 2024 17:19:19 +0200 Subject: [PATCH] Atualizar tachometer_v1.ino --- tachometer_v1.ino | 9 --------- 1 file changed, 9 deletions(-) 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++; - } -} }