test

main.cpp

Committer:
khayakawa
Date:
2017-08-09
Revision:
0:1a04fda5faa3

File content as of revision 0:1a04fda5faa3:

#include "mbed.h"

DigitalOut led1(LED1);
DigitalOut led2(LED2);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = 0;
        led2 = 0;
        wait(1.0);
        
        led1 = 1;
        led2 = 0;
        wait(1.0);
        
        led1 = 0;
        led2 = 1;
        wait(1.0);
    }
}