Adventure game written for ECE2035 at the Georgia Institute of Technology

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
2:0876296d9473
Parent:
1:399033d39feb
Child:
4:cdc54191ff07
--- a/hardware.cpp	Wed Apr 04 21:11:07 2018 +0000
+++ b/hardware.cpp	Tue Apr 17 17:17:20 2018 +0000
@@ -39,5 +39,12 @@
 GameInputs read_inputs() 
 {
     GameInputs in;
+    acc.readXGravity(&in.ax);
+    acc.readYGravity(&in.ay);
+    acc.readZGravity(&in.az);
+    //uLCD.printf("%f\n", in.ax);
+    in.b1 = button1;
+    in.b2 = button2;
+    in.b3 = button3;
     return in;
 }