Variable speed flash

Dependencies:   mbed

main.cpp

Committer:
faif
Date:
2015-03-15
Revision:
1:78fa04ead8c9
Parent:
0:d61df2a08b1d

File content as of revision 1:78fa04ead8c9:

#include "mbed.h"
#include "main.h"

int main (void) {
    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
    }
}