Manage updating a display over SPI four wire protocol in the background while Python code runs. It doesn’t handle display initialization.
FourWire(spi_bus, *, command, chip_select, reset=None, baudrate=24000000)¶
Create a FourWire object associated with the given pins.
The SPI bus and pins are then in use by the display until
displayio.release_displays()is called even after a reload. (It does this so CircuitPython can use the display after your code is done.) So, the first time you initialize a display bus in code.py you should call :py:func`displayio.release_displays` first, otherwise it will error after the first code.py run.
- spi_bus (busio.SPI) – The SPI bus that make up the clock and data lines
- command (microcontroller.Pin) – Data or command pin
- chip_select (microcontroller.Pin) – Chip select pin
- reset (microcontroller.Pin) – Reset pin. When None only software reset can be used
- baudrate (int) – Maximum baudrate in Hz for the display on the bus
Sends the given command value followed by the full set of data. Display state, such as vertical scroll, set via
sendmay or may not be reset once the code is done.