![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
3rd year group project. Electronic and Electrical Engineering. Heriot-Watt University. This is the code for the mbed for the Automatic Little Object Organiser (ALOO).
Dependencies: MCP23017 TCS3472_I2C WattBob_TextLCD mbed
Diff: main.cpp
- Revision:
- 17:af373246bf80
- Parent:
- 15:777390eb5afd
- Child:
- 18:44a1c1a30166
--- a/main.cpp Sun Nov 22 21:23:09 2015 +0000 +++ b/main.cpp Mon Nov 23 23:13:39 2015 +0000 @@ -316,7 +316,7 @@ void runInServoTestMode() { - pc.printf("Testing servos.\n Stopping servo:\n\tStop:%i, Go: %i\n Sorting servo:\n\tHaz:%i, NonHaz:%i", Stop, Go, Haz, NonHaz); + pc.printf("VALUES:Testing servos.\n Stopping servo:\n\tStop:%i, Go: %i\n Sorting servo:\n\tHaz:%i, NonHaz:%i\n:VALUES", Stop, Go, Haz, NonHaz); printServoInfoOnLCD(); int finished = false; @@ -337,8 +337,8 @@ } finished = button == 4; button = 0; - } while (finished == false); - runServoTest = false; + } while (finished == false && runServoTest != false); + D_LEDS_OFF(); lcd->cls(); lcd->locate(0,0);