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 d1f63cc commit ded0d04Copy full SHA for ded0d04
examples/pwmtest/pwmtest.ino
@@ -31,6 +31,10 @@ void setup() {
31
Serial.println("16 channel PWM test!");
32
33
pwm.begin();
34
+ // In theory the internal oscillator is 25MHz but it really isn't
35
+ // that precise. You can 'calibrate' by tweaking this number till
36
+ // you get the frequency you're expecting!
37
+ pwm.setOscillatorFrequency(27000000); // The int.osc. is closer to 27MHz
38
pwm.setPWMFreq(1600); // This is the maximum PWM frequency
39
40
// if you want to really speed stuff up, you can go into 'fast 400khz I2C' mode
0 commit comments