test

Dependencies:   mbed-os mbed

Committer:
symo0921
Date:
Tue Oct 02 09:44:16 2018 +0000
Branch:
test
Revision:
3:f5c937faf654
Parent:
2:e91969c6ae09
4444

Who changed what in which revision?

UserRevisionLine numberNew contents of line
symo0921 0:2d562b246a88 1 #include "mbed.h"
symo0921 0:2d562b246a88 2
symo0921 0:2d562b246a88 3 DigitalOut led1(LED1);
symo0921 3:f5c937faf654 4 111111
symo0921 1:3dc76cd598b0 5
symo0921 0:2d562b246a88 6
symo0921 0:2d562b246a88 7 void led2_thread() {
symo0921 0:2d562b246a88 8 while (true) {
symo0921 0:2d562b246a88 9 led2 = !led2;
symo0921 0:2d562b246a88 10 wait(1);
symo0921 0:2d562b246a88 11 }
symo0921 0:2d562b246a88 12 }
symo0921 0:2d562b246a88 13
symo0921 0:2d562b246a88 14 int main() {
symo0921 0:2d562b246a88 15 thread.start(led2_thread);
symo0921 0:2d562b246a88 16
symo0921 0:2d562b246a88 17 while (true) {
symo0921 0:2d562b246a88 18 led1 = !led1;
symo0921 0:2d562b246a88 19 wait(0.5);
symo0921 0:2d562b246a88 20 }
symo0921 0:2d562b246a88 21 }
symo0921 0:2d562b246a88 22