Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 6:a76dc8c92cea, committed 2020-03-05
- 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");}