blob: c67f2a63ed20f175519ea4765956531978b66fd6 (
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);
typedef enum {
SPEAKER_BEEP,
} speakerMode;
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 */
|