Sakis Kasampalis
/
variable_speed_flash
Variable speed flash
Diff: main.cpp
- Revision:
- 0:d61df2a08b1d
- Child:
- 1:78fa04ead8c9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Feb 11 14:56:05 2012 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "main.h" + +int main () { + while (true) { + myled = LedOn; + wait (mypot); // wait on equal to the value of the potentiometer + myled = LedOff; + wait (mypot); // wait off equal to the value of the potentiometer + } +}