asdasd

Files at this revision

API Documentation at this revision

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);
     }
 }