toggling a led

Dependencies:   Hotboards_leds mbed

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
--- /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
--- /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 );
+    }
+}
--- /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