led test
Dependencies: Nucleo_blink_led mbed
Fork of Nucleo_blink_led by
Revision 1:77e7371adc59, committed 2018-01-02
- Comitter:
- Yasfa
- Date:
- Tue Jan 02 06:16:33 2018 +0000
- Parent:
- 0:cc00340e998c
- Commit message:
- Yasfa
Changed in this revision
Nucleo_blink_led.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Nucleo_blink_led.lib Tue Jan 02 06:16:33 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/BlueSky2016/code/Nucleo_blink_led/#aabcc4565f7c
--- a/main.cpp Wed May 04 00:21:14 2016 +0000 +++ b/main.cpp Tue Jan 02 06:16:33 2018 +0000 @@ -1,16 +1,16 @@ #include "mbed.h" -DigitalOut myled1(LED1); -DigitalOut myled2(LED2); +DigitalOut myled1(LED2); +DigitalOut myled3(LED3); int main() { while(1) { myled1 = 1; // LED is ON - myled2 = 0; + myled3 = 0; wait(0.2); // 200 ms myled1 = 0; - myled2 = 1; // LED is ON - myled2 = 0; + myled3 = 1; // LED is ON + myled3 = 0; wait(0.2); // 200 ms } }