Test for (F29) for TIS

Files at this revision

API Documentation at this revision

Comitter:
noutram
Date:
Mon Jul 23 11:17:23 2018 +0000
Parent:
0:89700c8c5893
Commit message:
Test

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Dec 19 10:16:00 2017 +0000
+++ b/main.cpp	Mon Jul 23 11:17:23 2018 +0000
@@ -1,12 +1,16 @@
 #include "mbed.h"
 
 DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+
 
 // main() runs in its own thread in the OS
 int main() {
     while (true) {
         led1 = !led1;
+        led2 = led1.read() ? led2 : !led2;
+        led3 = led2.read() ? led3 : !led3;
         wait(0.5);
     }
 }
-
--- a/mbed-os.lib	Tue Dec 19 10:16:00 2017 +0000
+++ b/mbed-os.lib	Mon Jul 23 11:17:23 2018 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#5f6572179d66ce4c09d6517b659ac51133cc980d
+https://github.com/ARMmbed/mbed-os/#50bd61a4a72332baa6b1bac6caccb44dc5423309