From 3362013554bd40ce17894f67b3b8dcf568ccdb5c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 10 Jun 2014 16:23:50 +0200 Subject: pwm: Implement blink MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still flickers a little bit, might have to increase frequency… --- pwm.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pwm.h') 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 */ -- cgit v1.2.3