lab4
Dependencies: 4DGL-uLCD-SE mbed-rtos mbed
Diff: main.cpp
- Revision:
- 2:437fc6e9a1c3
- Parent:
- 1:070b617f00f3
- Child:
- 3:8bef7af1ba84
--- a/main.cpp Tue Mar 10 02:46:39 2015 +0000 +++ b/main.cpp Tue Mar 10 03:04:14 2015 +0000 @@ -27,6 +27,7 @@ if (timer<0.1) { if(count<29 && cheat>0) { ++count; + ++count; --cheat; } } @@ -282,7 +283,15 @@ int main(void) { - + lcd.printf("Need for Speed :P \n"); + lcd.printf("------------------"); + lcd.printf("1. Rotation Sensor - To steer right or left\n\n"); + lcd.printf("2. Force Sensor - To speed up\n\n"); + lcd.printf("3. Touch Sensor - To Cheat (3 times max)\n\n\n"); + lcd.printf(" Touch to begin!\n"); + + while(timer); + Thread thread1(steering); Thread thread2(obstacle); Thread thread3(forward);