From f4e36ee188a084e3103e43914d18bbe889fd4025 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 5 Aug 2014 15:57:39 +0200 Subject: pwm: Add brightness control --- pwm.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pwm.h') diff --git a/pwm.h b/pwm.h index f170573..96deaae 100644 --- a/pwm.h +++ b/pwm.h @@ -5,13 +5,14 @@ void pwmInit (); void pwmStart (); void pwmStop (); -void pwmSetBlink (const uint8_t, const uint8_t); +void pwmSet (const uint8_t, const uint8_t); -/* LED on (no blink) */ -#define PWM_BLINK_ON UINT8_MAX +/* LED on (max brightness) */ +#define PWM_ON UINT8_MAX /* LED off */ -#define PWM_BLINK_OFF 0 +#define PWM_OFF 0 #define PWM_LED_COUNT 6 +#define PWM_MAX_BRIGHTNESS 8 #endif /* PWM_H */ -- cgit v1.2.3