Variable speed flash

Dependencies:   mbed

Committer:
faif
Date:
Sat Feb 11 14:56:05 2012 +0000
Revision:
0:d61df2a08b1d
Child:
1:78fa04ead8c9

        

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 0:d61df2a08b1d 4 int main () {
faif 0:d61df2a08b1d 5 while (true) {
faif 0:d61df2a08b1d 6 myled = LedOn;
faif 0:d61df2a08b1d 7 wait (mypot); // wait on equal to the value of the potentiometer
faif 0:d61df2a08b1d 8 myled = LedOff;
faif 0:d61df2a08b1d 9 wait (mypot); // wait off equal to the value of the potentiometer
faif 0:d61df2a08b1d 10 }
faif 0:d61df2a08b1d 11 }