LED1 to LED3

Dependencies:   mbed

Committer:
BrunoV
Date:
Mon Jan 05 10:01:30 2015 +0000
Revision:
1:bb025fa34c62
Parent:
0:c0aee9c4a3e0
LED 1 changes to LED3;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
BrunoV 0:c0aee9c4a3e0 1 #include "mbed.h"
BrunoV 0:c0aee9c4a3e0 2
BrunoV 1:bb025fa34c62 3 DigitalOut myled(LED3);
BrunoV 0:c0aee9c4a3e0 4
BrunoV 0:c0aee9c4a3e0 5 int main()
BrunoV 0:c0aee9c4a3e0 6 {
BrunoV 0:c0aee9c4a3e0 7 while(1) {
BrunoV 0:c0aee9c4a3e0 8 myled = 1; // LED is ON
BrunoV 0:c0aee9c4a3e0 9 wait(0.2); // 200 ms
BrunoV 0:c0aee9c4a3e0 10 myled = 0; // LED is OFF
BrunoV 0:c0aee9c4a3e0 11 wait(0.2); // 1 sec
BrunoV 0:c0aee9c4a3e0 12 }
BrunoV 0:c0aee9c4a3e0 13 }