Browse Source

small updates to treppe

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

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

} }


void Treppe::set_idle_prozent(int prozent) { void Treppe::set_idle_prozent(int prozent) {
uint16_t new_pwm = 0xFFF * prozent / 100;
uint16_t new_pwm = active_pwm * prozent / 100;
set_idle_pwm(new_pwm); set_idle_pwm(new_pwm);
} }



Loading…
Cancel
Save