test

Dependencies:   mbed-os mbed

main.cpp

Committer:
symo0921
Date:
2018-10-02
Revision:
2:e91969c6ae09
Parent:
1:3dc76cd598b0
Child:
3:f5c937faf654
Child:
4:e88f4c2364eb

File content as of revision 2:e91969c6ae09:

#include "mbed.h"
 
DigitalOut led1(LED1);


 
void led2_thread() {
    while (true) {
        led2 = !led2;
        wait(1);
    }
}
 
int main() {
    thread.start(led2_thread);
    
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}