Constructs an output channel on the given pin.
The pin is the GPIO number the channel drives. The channel reserves the pin and releases it again when the channel is closed.
The resolution is the frequency of the clock that the RMT controller uses to emit the output signal. It ranges from 312500Hz (312.5KHz) to 80000000Hz (80MHz). Signals are specified in ticks of this frequency.
The memory-blocks parameter specifies the channel buffer capacity in units of RMT memory blocks. Each unit has BYTES-PER-MEMORY-BLOCK bytes. Since each signal is 2 bytes long, the number of signals that can be stored in each block is memory-blocks * BYTES-PER-MEMORY-BLOCK / 2. Generally, output channels don't need extra blocks as interrupts will copy data into the buffer when necessary.
If dma is true, memory-blocks sizes an internal-RAM DMA buffer instead of allocating dedicated RMT memory blocks. DMA is only supported on some chips, including the ESP32P4 and ESP32S3, and consumes an internal DMA channel.
If open-drain is set and pull-up is true, the internal pull-up resistor is enabled.
If an Out channel is in open-drain mode, and an In channel is on the same pin, then the In channel must be created first. Passing a gpio.Pin as pin is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.