blink a led on pin PA_5 using the toggle function

Dependencies:   Hotboards_leds mbed

Fork of toggle by Roman Valencia

main.cpp

Committer:
RomanValenciaP
Date:
2016-02-29
Revision:
0:7d0ffff768ec

File content as of revision 0:7d0ffff768ec:


/*
 * The simplest program II, blink a led on pin PA_5
 * but this time using the toggle function
 * 
 */
 
#include "mbed.h"
#include "Hotboards_leds.h"

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

int main()
{
    while(1)
    {
        //Toggles led
        led.toggle( );
        wait_ms( 300 );
    }
}