preliminary support for 16 bit pwm. The 16 bit counter ist still used for
[moodlight.git] / main.c
diff --git a/main.c b/main.c
index 3e66f1a5c5532373de52eb35575138d6d2b907e5..05d4b6b8259968c631c1274fb8dd357d55515bdf 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.7 2010/07/24 20:55:48 simimeie Exp $
+/* $Id: main.c,v 1.8 2010/07/25 20:40:44 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.
@@ -166,9 +166,7 @@ int main(void)
                  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));
-      ledpwm_setled(LEDPWM_BLUELED,  (((uint16_t)ledpwm_bl * ledpwm_bri) / 255));
+      ledpwm_set(ledpwm_re, ledpwm_gr, ledpwm_bl, ledpwm_bri);
     }
     /* i++;
     console_printhex8(i);
This page took 0.034593 seconds and 4 git commands to generate.