add the last missing colors on the infrared control (-sijuhamm)
authorsimimeie <simimeie>
Sat, 10 Jul 2010 07:32:08 +0000 (07:32 +0000)
committersimimeie <simimeie>
Sat, 10 Jul 2010 07:32:08 +0000 (07:32 +0000)
main.c

diff --git a/main.c b/main.c
index b94bc1d7b7acd3d412e977e6e96b9e792c1a4704..8f6f34fe01dbbab7cc9269fe1aae3f68c79f7200 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.5 2010/07/01 23:56:19 simimeie Exp $
+/* $Id: main.c,v 1.6 2010/07/10 07:32:08 simimeie Exp $
  * Main file for the HaWo moodlight.
  * This is the main file that glues it all together. It also contains all
  * functionality that is too small to require an extra file.
@@ -143,6 +143,10 @@ int main(void)
                  ledpwm_re = 0x00; ledpwm_gr = 0xff; ledpwm_bl = 0x80;
                  irstate = 0;
                  break;
+      case 0x0a: /* dark blue */
+                 ledpwm_re = 0x20; ledpwm_gr = 0x00; ledpwm_bl = 0xff;
+                 irstate = 0;
+                 break;
       case 0x0c: /* orange */
                  ledpwm_re = 0xff; ledpwm_gr = 0x80; ledpwm_bl = 0x00;
                  irstate = 0;
@@ -151,6 +155,10 @@ int main(void)
                  ledpwm_re = 0x00; ledpwm_gr = 0xff; ledpwm_bl = 0xff;
                  irstate = 0;
                  break;
+      case 0x0e: /* dark orchid 2 */
+                 ledpwm_re = 0x50; ledpwm_gr = 0x00; ledpwm_bl = 0xff;
+                 irstate = 0;
+                 break;
       case 0x10: /* bright orange */
                  ledpwm_re = 0xff; ledpwm_gr = 0xc0; ledpwm_bl = 0x00;
                  irstate = 0;
@@ -159,6 +167,10 @@ int main(void)
                  ledpwm_re = 0x00; ledpwm_gr = 0xa0; ledpwm_bl = 0xff;
                  irstate = 0;
                  break;
+      case 0x12: /* dark orchid */
+                 ledpwm_re = 0xc0; ledpwm_gr = 0x00; ledpwm_bl = 0xff;
+                 irstate = 0;
+                 break;
       case 0x14: /* yellow */
                  ledpwm_re = 0xff; ledpwm_gr = 0xff; ledpwm_bl = 0x00;
                  irstate = 0;
@@ -167,6 +179,10 @@ int main(void)
                  ledpwm_re = 0x00; ledpwm_gr = 0x60; ledpwm_bl = 0xff;
                  irstate = 0;
                  break;
+      case 0x16: /* violet */
+                 ledpwm_re = 0xff; ledpwm_gr = 0x00; ledpwm_bl = 0xff;
+                 irstate = 0;
+                 break;
       };
       ledpwm_setled(LEDPWM_REDLED,   (((uint16_t)ledpwm_re * ledpwm_bri) / 255));
       ledpwm_setled(LEDPWM_GREENLED, (((uint16_t)ledpwm_gr * ledpwm_bri) / 255));
This page took 0.073747 seconds and 4 git commands to generate.