LED blinky for TG-LPC11U35-501
Fork of mbed_blinky by
Revision 7:cef4a888abea, committed 2014-12-12
- Comitter:
- wakojun
- Date:
- Fri Dec 12 03:40:20 2014 +0000
- Parent:
- 6:9a051a6bcf1c
- Commit message:
- use LED1 and LED2 instead of P0_20 and P0_21
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9a051a6bcf1c -r cef4a888abea main.cpp --- a/main.cpp Fri Dec 12 03:32:37 2014 +0000 +++ b/main.cpp Fri Dec 12 03:40:20 2014 +0000 @@ -1,15 +1,15 @@ #include "mbed.h" -DigitalOut myled1(P0_21); -DigitalOut myled2(P0_20); +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); int main() { while(1) { myled1 = 1; myled2 = 0; - wait(1); + wait(0.5); myled1 = 0; myled2 = 1; - wait(1); + wait(0.5); } }