Kana Sekiguchi / Mbed 2 deprecated FullcolorLED

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
gu_420k
Date:
Fri Jun 14 03:59:20 2013 +0000
Parent:
0:4e6dbadc83fc
Commit message:
LEDlight change to 7color

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jun 13 10:41:24 2013 +0000
+++ b/main.cpp	Fri Jun 14 03:59:20 2013 +0000
@@ -14,7 +14,7 @@
 
   while(1){
     char c=pc.getc();
-    switch(c){
+    switch(c){    
     case 'r':
       r = 0;
       g = 1;
@@ -30,6 +30,26 @@
       g = 1;
       b = 0;
       break;
+    case 'y':
+      r = 0;
+      g = 0;
+      b = 1;
+      break;
+    case 'm':
+      r = 0;
+      g = 1;
+      b = 0;
+      break;
+    case 'c':
+      r = 1;
+      g = 0;
+      b = 0;
+      break;
+    case 'w':
+      r = 0;
+      g = 0;
+      b = 0;
+      break;
     }
   }
 }
\ No newline at end of file