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
Diff: main.cpp
- Revision:
- 2:aae9d053cb5d
- Parent:
- 0:ea5527eaa968
- Child:
- 3:e36e651ab7f2
diff -r 69490e603ed5 -r aae9d053cb5d main.cpp
--- a/main.cpp Sun Sep 21 19:03:25 2014 +0000
+++ b/main.cpp Sun Sep 21 19:05:22 2014 +0000
@@ -2,7 +2,8 @@
AnalogIn ain(p19);
DigitalOut led(LED1);
-
+
+// Turn on led if analog voltage > 30% of supply voltage
int main() {
while (1){
if(ain > 0.3) {