acd52832 blinky example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 #define RED_LED_PIN (p12)
00004 
00005 DigitalOut redLed(RED_LED_PIN);
00006 
00007 int main()
00008 {
00009    while(true)
00010    {
00011       redLed = !redLed;
00012       wait_ms(500);
00013       }
00014    }
00015