public class LEDPWM extends PWMComponent
Example of use: LEDPWMExample
DEFAULT_RPI_PWM_CLOCK_FREQUENCY, PCA9685_PULSE_TICKS, pinNumber
Constructor and Description |
---|
LEDPWM(PCA9685 pca9685,
PCA9685.PCA9685Channel channel)
Constructor for a LED controlled by a PWM signal, using a specific PCA9685
and a specific channel on this PCA9685 to send the PWM signal.
|
Modifier and Type | Method and Description |
---|---|
void |
setIntensity(int percent)
Sets the intensity of the light of the LED.
|
getType, setPWM, setPWM, setPWMFreq
public LEDPWM(PCA9685 pca9685, PCA9685.PCA9685Channel channel)
pca9685
- the PCA9685 to use to send PWM signals.channel
- the channel on the PCA9685 to use to send PWM signals.