Serial_communications_1

Dependencies:   mbed

main.cpp

Committer:
henr22
Date:
2014-02-21
Revision:
2:86bd227d75d5
Parent:
0:fb6bbc10ffa0
Child:
3:4e35f0d99e64

File content as of revision 2:86bd227d75d5:

#include "mbed.h"

DigitalOut myled(LED1);
DigitalOut myled2(LED2);
int main() {
    while(1) {
        myled = 1;
        myled2 = 0;
        wait(0.2);
        myled = 0;
        myled2 = 1;
        wait(0.2);
    }
}