From: Jan "Yenya" Kasprzak Date: Mon, 1 Dec 2014 12:07:31 +0000 (+0100) Subject: Step-up: only three intensity levels X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=3c1c6465bb29893ccb26b131986d803a169f007f;p=tinyboard.git Step-up: only three intensity levels --- diff --git a/projects/step-up/lights.h b/projects/step-up/lights.h index e3bd6e3..565deef 100644 --- a/projects/step-up/lights.h +++ b/projects/step-up/lights.h @@ -1,7 +1,7 @@ #ifndef LIGHTS_H__ #define LIGHTS_H__ 1 -#define N_PWMLED_MODES 4 +#define N_PWMLED_MODES 3 /* logging.c */ #ifdef USE_LOGGING diff --git a/projects/step-up/pwmled.c b/projects/step-up/pwmled.c index 485d024..2ede13b 100644 --- a/projects/step-up/pwmled.c +++ b/projects/step-up/pwmled.c @@ -25,8 +25,7 @@ static uint16_t adc_max = MA_TO_ADC(30); static uint16_t targets[N_PWMLED_MODES] = { MA_TO_ADC( 2), - MA_TO_ADC( 6), - MA_TO_ADC(12), + MA_TO_ADC(10), MA_TO_ADC(20), };