Alejandro Forero / Mbed 2 deprecated ledOnOff

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 /* led on/off. Connected anode LED to pin 8(PTA1 or D3)and cathode to ground (pin 14) of the board FRDM-K64F with a resistor of 330ohms.*/
00003 
00004 DigitalOut led(D3); 
00005 
00006 int main()
00007 {
00008     while (true) {
00009         led=1;
00010         wait(0.2);
00011         led=0;
00012         wait(0.2);
00013     }
00014 }