We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85953ad commit 02ab36eCopy full SHA for 02ab36e
Adafruit_PWMServoDriver.cpp
@@ -40,7 +40,7 @@ void Adafruit_PWMServoDriver::reset(void) {
40
void Adafruit_PWMServoDriver::setPWMFreq(float freq) {
41
//Serial.print("Attempting to set freq ");
42
//Serial.println(freq);
43
-
+ freq *= 0.9; // Correct for overshoot in the frequency setting (see issue #11).
44
float prescaleval = 25000000;
45
prescaleval /= 4096;
46
prescaleval /= freq;
0 commit comments