Remote inc coolant nozzle control program
Dependencies: mbed reScale USBDevice
Dependents: Nozzle_inputs Nozzle_display
Diff: main.cpp
- Revision:
- 7:d3c19705042b
- Parent:
- 6:5f3bb4ab449a
- Child:
- 9:69155b34efd6
--- a/main.cpp Mon Feb 11 00:48:20 2019 +0000 +++ b/main.cpp Tue Feb 19 05:56:39 2019 +0000 @@ -109,6 +109,7 @@ int received = 9; int serialCounter = 0; +int index = 0; int count = 0; int maxCount = 7; //max number of menu items @@ -212,7 +213,8 @@ } } */ - + + /* while (device.readable()) { @@ -244,7 +246,7 @@ } } - + */ @@ -519,7 +521,7 @@ */ -/* + while (device.readable()) { c = device.getc(); @@ -653,7 +655,7 @@ c = device.getc(); - if (c == 'U'){ + if (c == '+'){ currentToolNo = (currentToolNo +1); @@ -662,7 +664,7 @@ } index = 0; } - else if (c == 'D'){ + else if (c == '-'){ tft.setTextColor(WHITE); tft.setCursor(100, 100); @@ -677,7 +679,7 @@ } } -*/ +