with optic sensor
Dependencies: Stepper mbed PinDetect
Diff: main.cpp
- Revision:
- 6:7cd69300073f
- Parent:
- 5:1b451520ed5f
--- a/main.cpp Wed Sep 04 20:54:45 2019 +0000 +++ b/main.cpp Wed Sep 04 20:58:37 2019 +0000 @@ -61,12 +61,13 @@ myled3 = (count & 0x02)>>1; myled2 = (count & 0x04)>>2; myled = (count & 0x08)>>3; - count++; + count--; pc.printf("\ncount:%ld",count); } old_optic = new_optic; } + } }