verylittlewire.device.Device.pwmUpdateCompare
- Device.pwmUpdateCompare(channelA: int = 0, channelB: int = 0) None [source]
Sets the PWM compare value for both channels.
Update the compare values for both PWM channels. Resolution is 8 bit.
- Parameters
channelA (int) – Optional “channel A” compare value that have to use for the update on indirect corresponding PWM channel
PWM1
resp.PWMA
resp.PWM_PIN4
and can only be a value between: 0…255, defaults to zero (0)channelB (int) – Optional “channel B” compare value that have to use for the update on indirect corresponding PWM channel
PWM2
resp.PWMB
resp.PWM_PIN1
and can only be a value between: 0…255, defaults to zero (0)
- Return type
None
- USB CTR