- add eepromdata.h
[moodlight.git] / ledpwm.h
index 2b9dc2f640aaf4d60161c43dce73d7f6edb61d94..6d813193a8086a8a470db3617302bd1dfdbca90a 100644 (file)
--- a/ledpwm.h
+++ b/ledpwm.h
@@ -1,4 +1,4 @@
-/* $Id: ledpwm.h,v 1.1 2010/06/26 19:08:18 simimeie Exp $
+/* $Id: ledpwm.h,v 1.3 2010/07/10 07:34:51 simimeie Exp $
  * Functions for led brightness control via PWM (pulse width modulation).
  */
 
@@ -9,10 +9,18 @@
 #define LEDPWM_GREENLED  2
 #define LEDPWM_BLUELED   3
 
+extern uint8_t ledpwm_re;
+extern uint8_t ledpwm_gr;
+extern uint8_t ledpwm_bl;
+extern uint8_t ledpwm_bri;
+
 /* Init PWM (pins and timers) */
 void ledpwm_init(void);
 
 /* Set brightness for a certain LED */
 void ledpwm_setled(uint8_t led, uint8_t val);
 
+/* Set brightness for all LEDs */
+void ledpwm_set(uint8_t red, uint8_t green, uint8_t blue, uint8_t br);
+
 #endif /* _LEDPWM_H_ */
This page took 0.051167 seconds and 4 git commands to generate.