![](/media/cache/profiles/IvyS.JPG.50x50_q85.jpg)
My version of Blinkly
Revision 0:7b5a4e4c4484, committed 2018-02-01
- Comitter:
- Ivone
- Date:
- Thu Feb 01 17:42:42 2018 +0000
- Commit message:
- Lab 1 Blinkly
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 01 17:42:42 2018 +0000 @@ -0,0 +1,27 @@ +#include "mbed.h" +#include "rtos.h" + +DigitalOut myled(LED1); +DigitalOut myled2 (LED2); +DigitalOut myled3 (LED3); + +int main() { + int state = 1; + while (1) { + Thread::wait(300); + switch (state){ + case 0 : + myled =1 ; + myled2 =1; + myled3 =0; + state =1 ; + break ; + case 1 : + myled =0; + myled2 =1; + myled3 =1; + state =0; + break; + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Thu Feb 01 17:42:42 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/ST/code/mbed-rtos/#83895f30f8f2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 01 17:42:42 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7130f322cb7e \ No newline at end of file