INT_TIME define added

This commit is contained in:
Simon Schmidt 2021-07-03 21:11:32 +02:00
parent 1e8d24dc40
commit 1662079547

View File

@ -130,7 +130,7 @@ void Treppe::task()
} }
void Treppe::berechne_dimmer() { void Treppe::berechne_dimmer() {
ticks_pro_stufe = time_per_stair / 20; // [ms] ticks_pro_stufe = time_per_stair / INT_TIME; // [ms]
differenz_pwm_pro_tick = (float) (active_brightness - idle_brightness) differenz_pwm_pro_tick = (float) (active_brightness - idle_brightness)
/ (float) ticks_pro_stufe; / (float) ticks_pro_stufe;
} }