Variable speed flash

Dependencies:   mbed

Committer:
faif
Date:
Sun Mar 15 17:19:11 2015 +0000
Revision:
1:78fa04ead8c9
Parent:
0:d61df2a08b1d
revised

Who changed what in which revision?

UserRevisionLine numberNew contents of line
faif 0:d61df2a08b1d 1 #include "mbed.h"
faif 0:d61df2a08b1d 2 #include "main.h"
faif 0:d61df2a08b1d 3
faif 1:78fa04ead8c9 4 int main (void) {
faif 0:d61df2a08b1d 5 while (true) {
faif 0:d61df2a08b1d 6 myled = LedOn;
faif 1:78fa04ead8c9 7 wait(mypot); // wait on equal to the value of the potentiometer
faif 0:d61df2a08b1d 8 myled = LedOff;
faif 1:78fa04ead8c9 9 wait(mypot); // wait off equal to the value of the potentiometer
faif 0:d61df2a08b1d 10 }
faif 0:d61df2a08b1d 11 }