Browse Source

INT_TIME define added

tags/v1.0.0
Simon Schmidt 3 years ago
parent
commit
1662079547
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/treppe/treppe.cpp

+ 1
- 1
lib/treppe/treppe.cpp View File

@@ -130,7 +130,7 @@ void Treppe::task()
}

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)
/ (float) ticks_pro_stufe;
}

Loading…
Cancel
Save