aboutsummaryrefslogtreecommitdiff
path: root/pwm.h
blob: 8ca7b514bef73788ae14e6caed57020d488bad34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef PWM_H
#define PWM_H

#include <stdint.h>
void pwmInit ();
void pwmStart ();
void pwmStop ();
void pwmSet (const uint8_t, const uint8_t);
void pwmSetOff ();

typedef uint8_t speakerMode;
#define SPEAKER_BEEP 0

void speakerStart (const speakerMode);

#define PWM_LED_COUNT 6

#define PWM_OFF 0
/* must be power-of-two */
#define PWM_MAX_BRIGHTNESS 8
#define PWM_ON PWM_MAX_BRIGHTNESS

#endif /* PWM_H */