project for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
3:9dde875cd65c
Parent:
2:4947d6a82971
Child:
4:b687219ae447
--- a/hardware.cpp	Fri Oct 23 16:30:18 2020 -0400
+++ b/hardware.cpp	Tue Nov 24 08:35:47 2020 +0000
@@ -16,9 +16,9 @@
 
 // Hardware initialization: Instantiate all the things!
 uLCD_4DGL uLCD(p9,p10,p11);             // LCD Screen (tx, rx, reset)
-//SDFileSystem sd(p5, p6, p7, p8, "sd");  // SD Card(mosi, miso, sck, cs)
+SDFileSystem sd(p5, p6, p7, p8, "sd");  // SD Card(mosi, miso, sck, cs)
 Serial pc(USBTX,USBRX);                 // USB Console (tx, rx)
-MMA8452 acc(p28, p27, 100000);        // Accelerometer (sda, sdc, rate)
+MMA8452 acc(p28, p27, 100000);          // Accelerometer (sda, sdc, rate)
 DigitalIn button1(p21);                 // Pushbuttons (pin)
 DigitalIn button2(p22);
 DigitalIn button3(p23);
@@ -40,6 +40,9 @@
     button2.mode(PullUp);
     button3.mode(PullUp);
     
+    //Initialize accelerometer
+    accel.init();
+    
     return ERROR_NONE;
 }