f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
Diff: hardware.cpp
- Revision:
- 6:453dc852ac0f
- Parent:
- 5:077b66dfe296
--- a/hardware.cpp Mon Mar 14 23:38:03 2022 +0000 +++ b/hardware.cpp Tue Apr 12 01:39:20 2022 +0000 @@ -43,6 +43,10 @@ GameInputs read_inputs() { GameInputs in; + in.b1 = !button1; + in.b2 = !button2; + in.b3 = !button3; + acc.readXYZGravity(&in.ax, &in.ay, &in.az); return in; }