Sebastian Barrera / Mbed OS Lab4_part1

Dependencies:   MMA8451Q1

Files at this revision

API Documentation at this revision

Comitter:
sebbarpar
Date:
Thu Mar 05 11:09:18 2020 +0000
Parent:
5:f4d8d65ab7d5
Commit message:
Lab4 part 1;

Changed in this revision

MMA8451Q.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MMA8451Q.lib	Thu Mar 05 11:04:02 2020 +0000
+++ b/MMA8451Q.lib	Thu Mar 05 11:09:18 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/anilkumarzigma/code/MMA8451Q/#547751dd7b52
+https://os.mbed.com/users/sebbarpar/code/MMA8451Q1/#af0254ca679a
--- 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");}