Adafruit-PWM-Servo-Driver-Library icon indicating copy to clipboard operation
Adafruit-PWM-Servo-Driver-Library copied to clipboard

Add `setMultiplePWM()` function

Open runeharlyk opened this issue 8 months ago • 0 comments

Purpose

Having to update up to 16 servo takes a long time as each update needs to start and end an I2C transmission. The function setMultiplePWM allows for bulk update of pwm values.

Description

The function creates and populates a buffer with pwm settings for multiple channels before sending it in one I2C transmission.

Scope

  • This addition does not change existing functionality, but adds a new function to the library.

Examples

  • The example pwmtest.ino is a great example of the use case

runeharlyk avatar Mar 29 '25 13:03 runeharlyk