verylittlewire.device.Device.pwmUpdatePrescaler

Device.pwmUpdatePrescaler(value: int = 1) None[source]

Sets the PWM prescaler value (frequency) for both channels.

Update the prescaler of the entire PWM sub-system, therefore both channels. Adjust this value according to your need for speed in PWM output. Lower prescale means higher frequency on PWM all output channels.

Parameters

value (int) – Optional prescaler “value” that have to use for all PWM channels and can only be a value of PWM_FREQ_PS0, PWM_FREQ_PS1, PWM_FREQ_PS2, PWM_FREQ_PS3, or PWM_FREQ_PS4, defaults to one (1)

Return type

None

USB CTR

22