PWMSink#
- class ultimo_machine.gpio.PWMSink(pin_id, frequency, duty_u16=0, source=None)#
A sink that sets pulse-width modulation on a pin.
Methods
Create a task that consumes the source.
process(value)run()Consume the source if available.
Attributes
The input source for the pipeline.
- create_task() uasyncio.Task#
Create a task that consumes the source.
- async run()#
Consume the source if available.