Blinky program for Lizzy HW.

Files at this revision

API Documentation at this revision

Comitter:
jurica238814
Date:
Mon Apr 23 08:23:08 2018 +0000
Commit message:
Init commit.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 6603328e7c5b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 23 08:23:08 2018 +0000
@@ -0,0 +1,31 @@
+/*
+ *
+ */
+ 
+#include "mbed.h"
+
+#define RED             (p31)
+#define GREEN           (p2)
+#define BLUE            (p3)
+#define DELAY_MS        (1000)
+
+DigitalOut red(RED);
+DigitalOut green(GREEN);
+DigitalOut blue(BLUE);
+
+
+int main()
+{
+    while(1)
+    {
+        red = 1;
+        green = 1;
+        blue = 1;
+        wait_ms(DELAY_MS);
+        red = 0;
+        green = 0;
+        blue = 0;
+        wait_ms(DELAY_MS);
+    }
+}
+    
\ No newline at end of file
diff -r 000000000000 -r 6603328e7c5b mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Mon Apr 23 08:23:08 2018 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#f9ee4e849f8cbd64f1ec5fdd4ad256585a208360