Skip to content

Commit bded9cc

Browse files
committed
BUGFIX index buffer funciton definition
1 parent 1dfeab6 commit bded9cc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/encoder_examples/velocity_control/velocity_control.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Encoder encoder = Encoder(arduinoInt1, arduinoInt2, 8192, A0);
2222
// channel A and B callbacks
2323
void doA(){encoder.handleA();}
2424
void doB(){encoder.handleB();}
25+
void doIndex(){encoder.handleIndex();}
2526
// If no available hadware interrupt pins use the software interrupt
2627
PciListenerImp listenerIndex(encoder.index_pin, doIndex);
2728

examples/encoder_examples/velocity_ultraslow_control/velocity_ultraslow_control.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Encoder encoder = Encoder(arduinoInt1, arduinoInt2, 8192, A0);
2222
// channel A and B callbacks
2323
void doA(){encoder.handleA();}
2424
void doB(){encoder.handleB();}
25+
void doIndex(){encoder.handleIndex();}
2526
// If no available hadware interrupt pins use the software interrupt
2627
PciListenerImp listenerIndex(encoder.index_pin, doIndex);
2728

examples/encoder_examples/voltage_control/voltage_control.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Encoder encoder = Encoder(arduinoInt1, arduinoInt2, 8192, A0);
1919
// channel A and B callbacks
2020
void doA(){encoder.handleA();}
2121
void doB(){encoder.handleB();}
22+
void doIndex(){encoder.handleIndex();}
2223
// If no available hadware interrupt pins use the software interrupt
2324
PciListenerImp listenerIndex(encoder.index_pin, doIndex);
2425

0 commit comments

Comments
 (0)