Sakis Kasampalis
/
variable_speed_flash
Variable speed flash
main.cpp
- Committer:
- faif
- Date:
- 2012-02-11
- Revision:
- 0:d61df2a08b1d
- Child:
- 1:78fa04ead8c9
File content as of revision 0:d61df2a08b1d:
#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 } }