Search found 2 matches
- Mon Apr 03, 2023 3:32 pm
- Forum: Arduino
- Topic: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller
- Replies: 28
- Views: 109335
Re: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller
Absolutely brilliant - thank you very much indeed. The array pointer looks the better option to me and is similar to the way in which I did this using the <Servo.h> library when driving the servos directly from the Arduino for an earlier project.
- Sun Apr 02, 2023 4:14 pm
- Forum: Arduino
- Topic: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller
- Replies: 28
- Views: 109335
Re: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller
I am using 2 PCA9685s with my project and it depends upon an input (a push-button read at the beginning of the loop) as to whether the servo I want to activate is connected to either the first or second board. Is there any way to insert a variable into the call HCPCA9685_1.Servo(1, 250) where the in...