for test

Committer:
doudoutang
Date:
Wed Sep 16 12:32:16 2020 +0000
Revision:
0:0501ccebcb27
y

Who changed what in which revision?

UserRevisionLine numberNew contents of line
doudoutang 0:0501ccebcb27 1 #include "mbed.h"
doudoutang 0:0501ccebcb27 2
doudoutang 0:0501ccebcb27 3 DigitalOut led1(LED1);
doudoutang 0:0501ccebcb27 4
doudoutang 0:0501ccebcb27 5 // main() runs in its own thread in the OS
doudoutang 0:0501ccebcb27 6 int main() {
doudoutang 0:0501ccebcb27 7 while (true) {
doudoutang 0:0501ccebcb27 8 led1 = !led1;
doudoutang 0:0501ccebcb27 9 wait(0.5);
doudoutang 0:0501ccebcb27 10 }
doudoutang 0:0501ccebcb27 11 }
doudoutang 0:0501ccebcb27 12