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.
Dependencies: mbed
Revision 1:cd25012ba66e, committed 2019-10-15
- Comitter:
- mridley
- Date:
- Tue Oct 15 14:05:26 2019 +0000
- Parent:
- 0:5524eda855cf
- Commit message:
- new
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 15 12:10:36 2019 +0000
+++ b/main.cpp Tue Oct 15 14:05:26 2019 +0000
@@ -35,21 +35,21 @@
pc.printf("Analogue value: %6.4f Equivalent voltage: %6.4fvdc\n\r", analogue_val,analogue_val*3.3);
wait(0.250); // wait 250ms
- if (analogue_val<0.2{ //all leds off if less than 0.2
+ if (analogue_val<0.2){ //all leds off if less than 0.2
lowled=0;
quartled=0;
halfled=0;
highled=0;
break;
}
- else if(analogue_val<0.4{//low led on if less than 0.4
+ else if(analogue_val<0.4){//low led on if less than 0.4
lowled=1;
quartled=0;
halfled=0;
highled=0;
}
- else if(analogue_val<0.6{//low led and quart led on if less than 0.6
+ else if(analogue_val<0.6){//low led and quart led on if less than 0.6
lowled=1;
quartled=1;
halfled=0;
@@ -69,6 +69,7 @@
halfled=1;
highled=1;
+
}
}
}