Remote inc coolant nozzle control program
Dependencies: mbed reScale USBDevice
Dependents: Nozzle_inputs Nozzle_display
Diff: main.cpp
- Revision:
- 4:fa0af3a8e089
- Parent:
- 2:79c03ac27b72
- Child:
- 5:18c6ff1370d0
diff -r 79c03ac27b72 -r fa0af3a8e089 main.cpp --- a/main.cpp Fri Feb 08 20:51:59 2019 +0000 +++ b/main.cpp Sat Feb 09 23:46:05 2019 +0000 @@ -31,7 +31,7 @@ int main() { - + //pc.printf("HELLO WORLD\n"); @@ -41,6 +41,8 @@ uint8_t c = 0; // for 485 link while(1) { + + while (device.readable()) { @@ -185,6 +187,11 @@ } +dir= 1; + wait(0.1); +device.printf("M-"); +//device.printf("0"); +dir=0; }