Atualizar tachometer_v1.ino

This commit is contained in:
Pablo César Galdo Regueiro 2024-06-19 17:19:19 +02:00
parent 87a06ecc65
commit 461a49534b

View file

@ -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++;
}
}
}