Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Hotboards_leds mbed
Fork of led by
main.cpp
00001 00002 /* 00003 * file Hotboards_leds.cpp 00004 * autor Diego 00005 * modified by Roman 00006 * contact hotboards.org 00007 * 00008 * Description 00009 * The simplest program I, blink a led on pin PA_5 00010 * This sketch show how to use the Hotboards_leds library 00011 * for toggling a led 00012 */ 00013 00014 #include "mbed.h" 00015 #include "Hotboards_leds.h" 00016 00017 //Creates a simple led object 00018 Hotboards_leds led( PA_5 ); 00019 00020 int main() 00021 { 00022 while(1) 00023 { 00024 //Turns ON led 00025 led.turnOn( ); 00026 wait_ms( 100 ); 00027 //Turns OFF led 00028 led.turnOff( ); 00029 wait_ms( 100 ); 00030 } 00031 }
Generated on Sun Jul 17 2022 04:45:48 by
1.7.2

Hotboards Leds