Browse Source

pwm frequency

tags/v0.1.0
Dominik Bartsch 3 years ago
parent
commit
d6b2fafc54
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main.cpp

+ 2
- 2
src/main.cpp View File

@@ -167,8 +167,8 @@ void setup() {

pwmController.resetDevices(); // Software resets all PCA9685 devices on Wire line

pwmController.init(B000000); // Address pins A5-A0 set to B000000
pwmController.setPWMFrequency(100); // Default is 200Hz, supports 24Hz to 1526Hz
pwmController.init(B000000); // Address pins A5-A0 set to B000000
pwmController.setPWMFrequency(200); // Default is 200Hz, supports 24Hz to 1526Hz

pwmController.setChannelPWM(0, 128 << 4); // Set PWM to 128/255, but in 4096 land


Loading…
Cancel
Save