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.
Diff: main.cpp
- 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");}