Push Buttons to control 4 LED
Dependencies:
mbed
main.cpp
- Committer:
- Eduvance
- Date:
- 2014-05-17
- Revision:
- 0:9ea5fee5968c
File content as of revision 0:9ea5fee5968c:
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1;
wait(0.2);
myled = 0;
wait(0.2);
}
}