Sakis Kasampalis
/
variable_speed_flash
Variable speed flash
Diff: main.cpp
- Revision:
- 1:78fa04ead8c9
- Parent:
- 0:d61df2a08b1d
--- 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 } }