We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 596a11b commit 1391936Copy full SHA for 1391936
1 file changed
src/main.ino
@@ -316,11 +316,16 @@ void setup()
316
digitalWrite(ROTARY_ENC_A, HIGH); //turn pullup resistor on
317
digitalWrite(ROTARY_ENC_B, HIGH); //turn pullup resistor on
318
319
+#if 0
320
//call updateEncoder() when any high/low changed seen
321
attachInterrupt( digitalPinToInterrupt(2), ISR_ON_PIN2, RISING);
- // attachInterrupt( (2), ISR_ON_PIN2, RISING);
322
attachInterrupt( digitalPinToInterrupt(3), ISR_ON_PIN3, RISING);
323
- // attachInterrupt( (3), ISR_ON_PIN3, RISING);
+#else
324
+ // NOTE: This changes with board. Testing with UNO. The above snippet is
325
+ // preferred when available.
326
+ attachInterrupt(0, ISR_ON_PIN2, RISING);
327
+ attachInterrupt(1, ISR_ON_PIN3, RISING);
328
+#endif
329
330
331
// fixme: move after wait_for_start
0 commit comments