aboutsummaryrefslogtreecommitdiff
path: root/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'pwm.h')
-rw-r--r--pwm.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/pwm.h b/pwm.h
index 96deaae..c67f2a6 100644
--- a/pwm.h
+++ b/pwm.h
@@ -7,12 +7,18 @@ void pwmStart ();
void pwmStop ();
void pwmSet (const uint8_t, const uint8_t);
-/* LED on (max brightness) */
-#define PWM_ON UINT8_MAX
-/* LED off */
-#define PWM_OFF 0
+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 */