led

Dependencies:   mbed

Committer:
genebe25
Date:
Tue Jul 07 11:33:00 2015 +0000
Revision:
0:31408c00a214
Child:
1:883bcb081bf0
add

Who changed what in which revision?

UserRevisionLine numberNew contents of line
genebe25 0:31408c00a214 1 #include "mbed.h"
genebe25 0:31408c00a214 2
genebe25 0:31408c00a214 3 DigitalOut myled(LED1);
genebe25 0:31408c00a214 4 DigitalOut myled2(LED2);
genebe25 0:31408c00a214 5 int main() {
genebe25 0:31408c00a214 6 while(1) {
genebe25 0:31408c00a214 7 myled = 1;
genebe25 0:31408c00a214 8 myled2 = 0;
genebe25 0:31408c00a214 9
genebe25 0:31408c00a214 10 wait(0.2);
genebe25 0:31408c00a214 11 myled = 0;
genebe25 0:31408c00a214 12 myled2 = 1;
genebe25 0:31408c00a214 13 wait(0.2);
genebe25 0:31408c00a214 14 }
genebe25 0:31408c00a214 15 }