Atualizar tachometer_v1.ino
This commit is contained in:
parent
87a06ecc65
commit
461a49534b
1 changed files with 0 additions and 9 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue