diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-06-10 16:23:50 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-06-10 16:23:50 +0200 |
commit | 3362013554bd40ce17894f67b3b8dcf568ccdb5c (patch) | |
tree | c3dfaf8025f779dcb8d40e416d488f1e144ada5f /pwm.h | |
parent | b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2 (diff) | |
download | hourglass-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 */ |