LED1 to LED3

Dependencies:   mbed

Committer:
BrunoV
Date:
Mon Jan 05 09:56:47 2015 +0000
Revision:
0:c0aee9c4a3e0
Child:
1:bb025fa34c62
COmmit for team;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
BrunoV 0:c0aee9c4a3e0 1 #include "mbed.h"
BrunoV 0:c0aee9c4a3e0 2
BrunoV 0:c0aee9c4a3e0 3 DigitalOut myled(LED1);
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 }