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: Convert SLCD mbed
Revision 0:4613ca3d36db, committed 2014-12-11
- Comitter:
 - jhaugen
 - Date:
 - Thu Dec 11 01:44:12 2014 +0000
 - Commit message:
 - Init
 
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Convert.lib Thu Dec 11 01:44:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Waldek/code/Convert/#4c6a9e109cd0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SLCD.lib Thu Dec 11 01:44:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/SLCD/#ef2b3b7f1b01
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 11 01:44:12 2014 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "convert.h"
+
+PwmOut r(LED_RED);
+PwmOut g(LED_GREEN);
+
+int main()
+{
+    r.period(0.001f);
+    g.period(0.001f);
+    Convert lcd;
+    lcd.display(9999);
+
+    while (true) {
+        
+        /*for (float i = 0.0f; i < 1.0f ; i += 0.001f) {
+            float p = 3 * i;
+            r = 1.0f - ((p < 1.0f) ? 1.0f - p : (p > 2.0f) ? p - 2.0f : 0.0f);
+            g = 1.0f - ((p < 1.0f) ? p : (p > 2.0f) ? 0.0f : 2.0f - p);
+            wait (0.0025f);
+        }*/
+    }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 11 01:44:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file