Ye-Chan Yu
/
mbed-os-example-test
asdasd
Revision 1:f2a8b36c93e2, committed 2017-06-17
- Comitter:
- fbdp1202
- Date:
- Sat Jun 17 08:30:28 2017 +0000
- Parent:
- 0:612ab7b3326c
- Commit message:
- Add Led
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jun 17 06:55:30 2017 +0000 +++ b/main.cpp Sat Jun 17 08:30:28 2017 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" DigitalOut led1(LED1); +DigitalOut led2(LED2); // main() runs in its own thread in the OS int main() { while (true) { led1 = !led1; wait(0.5); + led2 = !led2; + wait(0.5); } }