File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
// Needed on Leonardo to force use of USB serial.
7
7
#define USE_USBCON
8
8
9
- #include < PinChangeInt .h>
9
+ #include < EnableInterrupt .h>
10
10
#include < SimplePID.h>
11
11
12
12
#include < ros.h>
@@ -99,10 +99,10 @@ void setup()
99
99
pinMode (M1_DIRECTION, OUTPUT);
100
100
pinMode (M2_DIRECTION, OUTPUT);
101
101
102
- attachPinChangeInterrupt (M1_A, leftAChange, CHANGE);
103
- attachPinChangeInterrupt (M1_B, leftBChange, CHANGE);
104
- attachPinChangeInterrupt (M2_A, rightAChange, CHANGE);
105
- attachPinChangeInterrupt (M2_B, rightBChange, CHANGE);
102
+ enableInterrupt (M1_A, leftAChange, CHANGE);
103
+ enableInterrupt (M1_B, leftBChange, CHANGE);
104
+ enableInterrupt (M2_A, rightAChange, CHANGE);
105
+ enableInterrupt (M2_B, rightBChange, CHANGE);
106
106
107
107
nh.initNode ();
108
108
You can’t perform that action at this time.
0 commit comments