Lab 6 code.
Dependencies: mbed
Fork of WaG by
Diff: stepper.cpp
- Revision:
- 21:88f9f280931b
- Parent:
- 20:d23bcd97f2c5
- Child:
- 22:09dd6977576b
--- a/stepper.cpp Tue Mar 06 17:25:48 2018 +0000 +++ b/stepper.cpp Wed Mar 07 00:50:57 2018 +0000 @@ -18,8 +18,8 @@ #include "stepper.h" DigitalOut stp_ncs(STP_DRV8806_NCS); -DigitalIn jog_ccw(D4); -DigitalIn jog_cw(D5); +extern DigitalIn jog_ccw; +extern DigitalIn jog_cw; int stp_cur_pos; int stp_sensor_pos[NUM_SENSORS + 1];