Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MMA8452 N5110 PowerControl beep mbed
Diff: Accel-cize.cpp
- Revision:
- 5:c0a58a6916f2
- Parent:
- 3:1974db5993ef
- Child:
- 7:95abf8c8af1e
--- a/Accel-cize.cpp Mon May 04 21:14:23 2015 +0000
+++ b/Accel-cize.cpp Tue May 05 22:32:07 2015 +0000
@@ -1,11 +1,10 @@
#include "MMA8452Test.h"
-#include "PowerControl/PowerControl.h"
#include "GameFSM.h"
AnalogIn adjust(p20);
Timer t;
FSM program;
-
+Menu wel;
int main()
{
Test init;
@@ -15,12 +14,12 @@
ButtonD.rise(&BuDPress);
ButtonA.rise(&BuAPress);
ButtonB.rise(&BuBPress);
-
+ wel.welcome();
while(1) {
lcd.setBrightness(adjust);
program.proact();
-
+
//////// Timer for the mbed go to sleep mode when waiting for 2 mins ////////
/*resetButton();
if ((BuAFlag || BuBFlag || BuDFlag || BuUFlag) == 0) {