
lkjhgfds
Revision 1:d55966246784, committed 2013-05-03
- Comitter:
- DanielOJ
- Date:
- Fri May 03 10:52:36 2013 +0000
- Parent:
- 0:0e59bc451a57
- Commit message:
- CAR GAME LOLOLOL
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed May 01 09:08:11 2013 +0000 +++ b/main.cpp Fri May 03 10:52:36 2013 +0000 @@ -1,11 +1,6 @@ #include "mbed.h" #include "TextLCD.h" #include "TSISensor.h" -#include "MMA8451Q.h" - -// accelerometer -#define MMA8451_I2C_ADDRESS (0x1d<<1) -MMA8451Q acc(PTE25, PTE24, MMA8451_I2C_ADDRESS); TextLCD lcd(PTD1,PTD3,PTD2,PTD0,PTD5,PTA13); // rs, e, d4-d7 // number of seconds to wait between each frame movement @@ -88,6 +83,7 @@ // game control // what to do if controller is on right + if (tsi.readPercentage() >= 0.5) { // if on one side of touchpad // go to column lcd.locate(15,1);