Sakis Kasampalis
/
variable_speed_flash
Variable speed flash
Revision 1:78fa04ead8c9, committed 2015-03-15
- Comitter:
- faif
- Date:
- Sun Mar 15 17:19:11 2015 +0000
- Parent:
- 0:d61df2a08b1d
- Commit message:
- revised
Changed in this revision
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