quick-hack rudimentary ability to control color and brightness with
[moodlight.git] / ledpwm.h
CommitLineData
ddf1553f 1/* $Id: ledpwm.h,v 1.2 2010/06/30 19:39:28 simimeie Exp $
17aea8ef 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
ddf1553f 12extern uint8_t ledpwm_re;
13extern uint8_t ledpwm_gr;
14extern uint8_t ledpwm_bl;
15extern uint8_t ledpwm_bri;
16
17aea8ef 17/* Init PWM (pins and timers) */
18void ledpwm_init(void);
19
20/* Set brightness for a certain LED */
21void ledpwm_setled(uint8_t led, uint8_t val);
22
23#endif /* _LEDPWM_H_ */
This page took 0.046346 seconds and 4 git commands to generate.