My ELEC2645 project. Nikollao Sulollari. 200804685
Dependencies: N5110 SoftPWM mbed
Diff: main.h
- Revision:
- 12:f591f1965abd
- Parent:
- 11:53caf3d944a9
--- a/main.h Thu Apr 28 16:29:06 2016 +0000 +++ b/main.h Thu Apr 28 18:44:02 2016 +0000 @@ -396,16 +396,16 @@ circleY = rand() %20 + 10; /// init circleX, circleY circleX = 0; - if ( play == 0) { ///if its first play print welcome message, otherwise don't + // if ( play == 0) { ///if its first play print welcome message, otherwise don't - lcd.setBrightness(0.5); // put LED backlight on 50% - timeout.attach(&timeout_isr,2); - lcd.printString("Welcome to",11,1); - lcd.printString("Treasure Hunt!",1,3); - lcd.refresh(); - sleep(); - lcd.clear(); - } + lcd.setBrightness(0.5); // put LED backlight on 50% + timeout.attach(&timeout_isr,3); + lcd.printString("Welcome to",11,1); + lcd.printString("Treasure Hunt!",1,3); + lcd.refresh(); + sleep(); + lcd.clear(); + //} } void guidance() { @@ -665,6 +665,16 @@ } else if (option == 2) { lcd.drawCircle(35,35,2,1); } + + if (g_button_flag) { + + g_button_flag = 0; + + if (option == 0) { + + + } + } lcd.refresh(); sleep(); }