CTL_STATUS_t pca9532_set_pwm_frequency(PCA9532_DRIVER_t *self,
                                       int channel,
                                       float frequency);

pca9532_set_pwm_frequency sets the PWM frequency of channel channel of the LED driver self to frequency hertz. channel is 0 or 1 to select between the two channels.

Return Value

pca9532_set_pwm_frequency returns a standard status code.

Thread Safety

pca9532_set_pwm_frequency is thread-safe if a mutex is associated with the I2C bus bus.