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:
- 1:d257a5dacc0b
- Parent:
- 0:93daf3a92680
--- a/main.cpp Fri Sep 02 06:32:25 2016 +0000
+++ b/main.cpp Sun Sep 04 05:15:32 2016 +0000
@@ -8,11 +8,11 @@
val=CDS.read();
printf("%f\n",val);
wait(0.2);
- if(val<0.9f){
- led=1;
+ if(val<0.4f){
+ led=0;
}
- else if(val>=0.9f){
- led=0;
+ else if(val>=0.4f){
+ led=1;
}
}
}