aboutsummaryrefslogtreecommitdiff
path: root/pwm.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-06-10 16:23:50 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-06-10 16:23:50 +0200
commit3362013554bd40ce17894f67b3b8dcf568ccdb5c (patch)
treec3dfaf8025f779dcb8d40e416d488f1e144ada5f /pwm.h
parentb442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2 (diff)
downloadhourglass-3362013554bd40ce17894f67b3b8dcf568ccdb5c.tar.gz
hourglass-3362013554bd40ce17894f67b3b8dcf568ccdb5c.tar.bz2
hourglass-3362013554bd40ce17894f67b3b8dcf568ccdb5c.zip
pwm: Implement blink
Still flickers a little bit, might have to increase frequency…
Diffstat (limited to 'pwm.h')
-rw-r--r--pwm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pwm.h b/pwm.h
index eeb93c6..399a099 100644
--- a/pwm.h
+++ b/pwm.h
@@ -5,7 +5,12 @@
void pwmInit ();
void pwmStart ();
void pwmStop ();
-void pwmSetBrightness (const uint8_t i, const uint8_t b);
+void pwmSetBlink (const uint8_t, const uint8_t);
+
+/* LED on (no blink) */
+#define PWM_BLINK_ON UINT8_MAX
+/* LED off */
+#define PWM_BLINK_OFF 0
#endif /* PWM_H */