hgftf
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: hardware.cpp
- Revision:
- 3:bb6f73642f01
- Parent:
- 2:4947d6a82971
- Child:
- 5:5953ca12205d
diff -r 4947d6a82971 -r bb6f73642f01 hardware.cpp --- a/hardware.cpp Fri Oct 23 16:30:18 2020 -0400 +++ b/hardware.cpp Mon Nov 16 20:38:03 2020 +0000 @@ -49,5 +49,11 @@ GameInputs read_inputs() { GameInputs in; + // not sure yet + in.b1 = button1.read(); + in.b2 = button2.read(); + in.b3 = button3.read(); + acc.readXYZGravity(&in.ax,&in.ay,&in.az); + //pc.printf("x:%lf y:%lf z:%lf\r\n",in.ax,in.ay,in.az); return in; }