LED blinky for TG-LPC11U35-501
Fork of mbed_blinky by
Diff: main.cpp
- Revision:
- 5:28d0d6ecb1ff
- Parent:
- 4:81cea7a352b0
- Child:
- 6:9a051a6bcf1c
--- a/main.cpp Tue Mar 18 11:19:57 2014 +0000 +++ b/main.cpp Fri May 02 07:23:04 2014 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut myled1(P0_21); +DigitalOut myled2(P0_20); int main() { while(1) { - myled = 1; + myled1 = 1; + myled2 = 0; wait(0.2); - myled = 0; + myled1 = 0; + myled2 = 1; wait(0.2); } }