The simplest program , blink a led on pin PA_5

Dependencies:   Hotboards_leds mbed

Fork of led by Roman Valencia

Files at this revision

API Documentation at this revision

Comitter:
RomanValenciaP
Date:
Mon Feb 29 19:58:35 2016 +0000
Child:
1:87da85491aaa
Commit message:
first release - requires approval

Changed in this revision

Hotboards_leds.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Hotboards_leds.lib	Mon Feb 29 19:58:35 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/Hotboards/code/Hotboards_leds/#ea0715867677
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 29 19:58:35 2016 +0000
@@ -0,0 +1,24 @@
+
+/*
+ * 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 );
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 29 19:58:35 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3
\ No newline at end of file