The simplest program , blink a led on pin PA_5

Dependencies:   Hotboards_leds mbed

Fork of led by Roman Valencia

main.cpp

Committer:
RomanValenciaP
Date:
2016-02-29
Revision:
0:b5cfc5f155cb
Child:
1:87da85491aaa

File content as of revision 0:b5cfc5f155cb:


/*
 * The simplest program I, blink a led on pin PA_5
 *
 */
 
#include "mbed.h"
#include "Hotboards_leds.h"

//Creates a simple led object
Hotboards_leds led( PA_5 );

int main()
{
    while(1)
    {
        //Turns ON led
        led.turnOn( );
        wait_ms( 100 );
        //Turns OFF led
        led.turnOff( );
        wait_ms( 100 );
    }
}