- add LED control with PWM
[moodlight.git] / ledpwm.h
1 /* $Id: ledpwm.h,v 1.1 2010/06/26 19:08:18 simimeie Exp $
2  * Functions for led brightness control via PWM (pulse width modulation).
3  */
4
5 #ifndef _LEDPWM_H_
6 #define _LEDPWM_H_
7
8 #define LEDPWM_REDLED    1
9 #define LEDPWM_GREENLED  2
10 #define LEDPWM_BLUELED   3
11
12 /* Init PWM (pins and timers) */
13 void ledpwm_init(void);
14
15 /* Set brightness for a certain LED */
16 void ledpwm_setled(uint8_t led, uint8_t val);
17
18 #endif /* _LEDPWM_H_ */
This page took 0.048164 seconds and 3 git commands to generate.