Change software pwm method to fix blink issue
This commit is contained in:
parent
f121a98ae3
commit
5cc4c69fae
@ -97,7 +97,7 @@ ISR(TIMER3_COMPA_vect)
|
|||||||
step++;
|
step++;
|
||||||
if (step >= BREATHING_LED_LEVELS - breathing_led_config.level) {
|
if (step >= BREATHING_LED_LEVELS - breathing_led_config.level) {
|
||||||
step = 0;
|
step = 0;
|
||||||
index++;
|
|
||||||
backlight_set_raw(pgm_read_byte(&breathing_table[index]));
|
backlight_set_raw(pgm_read_byte(&breathing_table[index]));
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user