Sebastian Barrera / Mbed OS Lab4_part1

Dependencies:   MMA8451Q1

Revision:
6:a76dc8c92cea
Parent:
5:f4d8d65ab7d5
--- a/main.cpp	Thu Mar 05 11:04:02 2020 +0000
+++ b/main.cpp	Thu Mar 05 11:09:18 2020 +0000
@@ -28,7 +28,7 @@
                 rled=1;
                 gled=1;
                 bled=1;
-                if (z>0.9) {state=flat; pc.printf("Flat");}
+                if (z>0.9) {state=flat; pc.printf("Flat");}//Check position and change state
                 if (z<-0.9) {state=over; pc.printf("Over");}
                 if (x>0.9) {state=down; pc.printf("Down");}
                 if (x<-0.9) {state=up; pc.printf("Up");}