Skip to content

Commit 6dc1721

Browse files
committed
fix issue #27, update to version 1.5.1
1 parent fc83047 commit 6dc1721

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file starting 2021.
44

5+
## [1.5.1] - 2021-04-23
6+
7+
FIX: attachInterrupt() with digitalPinToInterrupt() required for Arduino UNO etc.
8+
9+
510
## [1.5.0] - 2021-02-06
611

712
* CHANGELOG created.

examples/InterruptRotator/InterruptRotator.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ void setup()
7070
while (! Serial);
7171
Serial.println("InterruptRotator example for the RotaryEncoder library.");
7272

73-
attachInterrupt(PIN_IN1, checkPosition, CHANGE);
74-
attachInterrupt(PIN_IN2, checkPosition, CHANGE);
73+
attachInterrupt(digitalPinToInterrupt(PIN_IN1), checkPosition, CHANGE);
74+
attachInterrupt(digitalPinToInterrupt(PIN_IN2), checkPosition, CHANGE);
7575
} // setup()
7676

7777

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=RotaryEncoder
2-
version=1.5.0
2+
version=1.5.1
33
author=Matthias Hertel
44
maintainer=Matthias Hertel, http://www.mathertel.de
55
sentence=Use a rotary encoder with quadrature pulses as an input device.

0 commit comments

Comments
 (0)