blink a led on pin PA_5 using the toggle function

Dependencies:   Hotboards_leds mbed

Fork of toggle by Roman Valencia

Files at this revision

API Documentation at this revision

Comitter:
RomanValenciaP
Date:
Mon Feb 29 20:01:46 2016 +0000
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
diff -r 000000000000 -r 7d0ffff768ec Hotboards_leds.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Hotboards_leds.lib	Mon Feb 29 20:01:46 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/Hotboards/code/Hotboards_leds/#ea0715867677
diff -r 000000000000 -r 7d0ffff768ec main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 29 20:01:46 2016 +0000
@@ -0,0 +1,22 @@
+
+/*
+ * 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 );
+    }
+}
diff -r 000000000000 -r 7d0ffff768ec mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 29 20:01:46 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3
\ No newline at end of file