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
PWM1resp.PWMAresp.PWM_PIN4and 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
PWM2resp.PWMBresp.PWM_PIN1and can only be a value between: 0…255, defaults to zero (0)
- Return type
None
- USB CTR