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.
Diff: main.cpp
- Revision:
 - 0:c83cf610a2bb
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 07 14:20:06 2013 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+PwmOut bled(LED1);
+PwmOut gled(LED2);
+PwmOut rled(LED3);
+
+void color(int red, int green, int blue);
+
+int main() {
+    color(20,20,255);
+    while(1) {
+        
+    }
+}
+
+void color(int red, int green, int blue){
+    float r, g, b;
+    
+    r = (float)red/255;
+    g = (float)green/255;
+    b = (float)blue/255;
+    
+    bled = 1 - b;
+    gled = 1 - g;
+    rled = 1 - r;
+}
+