Can I control an LED with the HCPCA9685 Library?

I am using a PCA9685 to control 7 servos and would like to also control 2 LEDs with it as well. Is there a code to control LEDs in the HCPCA9685 library? Thanks in advance.

That board outputs PWM signals. You can use it to control LEDs in the same way as you do servos

Hi, thanks for the reply. Correct, I can control the LEDs with the board. I am not sure what code I would need to use since I am using the HCPCA9685 library.

For example, I use this code to control a servo.

HCPCA9685.Servo(HeadTurn, 200);

What can I use in this library to control the LEDs

Please post your current sketch, using code tags when you do

Maybe with this:
HCPCA9685.Output(Chan, On_Time, Off_Time);
Sets the turn ON time and OFF time for one of the 15 PWM outputs where:

Chan is the PWM output pin to change. Valid values are
0 (PWM output pin 0) to 15 (PWM output pin 15)

On_Time is the point at which to turn the output ON within the cycle period. Valid values are
0 to 4095 (decimal)

Off_Time is the point at which to turn the output OFF within the cycle period. Valid values are
0 to 4095 (decimal)

https://forum.hobbycomponents.com/viewtopic.php?t=2034

When using the PCA9685 for servos and LEDs in one application the PWM frequency may be a problem. This frequency is always the same on all outputs and must be 50Hz for the servos. If you dimm LED's with that low frequency you may see them flicker.
If you only want to switch them on or off, there is no problem.

Some servos can also be operated at a higher frequency. You may have to try this out to find a balance between the frequency for the servos and the LEDs.

I do want that led to flicker. How can I code it?

This is what I have, correct me if I'm wrong:

PCA9685.setPMW(HoloEyeLED, 0, random(0, 4000));