![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Display code
Dependencies: mbed reScale RotaryEncoder RPG Adafruit_ST7735 Adafruit_GFX PinDetect Ee24xx08 mRotaryEncoder
Diff: main.cpp
- Revision:
- 4:d3c19705042b
- Parent:
- 3:5f3bb4ab449a
- Child:
- 5: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 @@ } } -*/ +