Variable speed flash

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
faif
Date:
Sun Mar 15 17:19:11 2015 +0000
Parent:
0:d61df2a08b1d
Commit message:
revised

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r d61df2a08b1d -r 78fa04ead8c9 main.cpp
--- a/main.cpp	Sat Feb 11 14:56:05 2012 +0000
+++ b/main.cpp	Sun Mar 15 17:19:11 2015 +0000
@@ -1,11 +1,11 @@
 #include "mbed.h"
 #include "main.h"
 
-int main () {
+int main (void) {
     while (true) {
         myled = LedOn;
-        wait (mypot);   // wait on equal to the value of the potentiometer
+        wait(mypot);      // wait on equal to the value of the potentiometer
         myled = LedOff;
-        wait (mypot); // wait off equal to the value of the potentiometer
+        wait(mypot);      // wait off equal to the value of the potentiometer
     }
 }
diff -r d61df2a08b1d -r 78fa04ead8c9 main.h
--- a/main.h	Sat Feb 11 14:56:05 2012 +0000
+++ b/main.h	Sun Mar 15 17:19:11 2015 +0000
@@ -3,7 +3,7 @@
 
 enum {LedOff = 0, LedOn = 1};
 
-AnalogIn mypot (p20);
-DigitalOut myled (LED4);
+AnalogIn mypot(p20);
+DigitalOut myled(LED2);
 
 #endif
diff -r d61df2a08b1d -r 78fa04ead8c9 mbed.bld
--- a/mbed.bld	Sat Feb 11 14:56:05 2012 +0000
+++ b/mbed.bld	Sun Mar 15 17:19:11 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912
\ No newline at end of file