aurora_epaper
– A framebuffer for Pervasive Displays Aurora E-paper displays.
- class aurora_epaper.AuroraMemoryFramebuffer(spi_bus: busio.SPI, chip_select: microcontroller.Pin, reset: microcontroller.Pin, busy: microcontroller.Pin, discharge: microcontroller.Pin, width: int, height: int, power: microcontroller.Pin | None = None, free_bus: bool | None = True)
These displays are 2 color only.
This initializes a display and connects it to CircuitPython.
For Example:
import busio import framebufferio from aurora_epaper import AuroraMemoryFramebuffer spi = busio.SPI(EINK_CLKS, EINK_MOSI, EINK_MISO) aurora = AuroraMemoryFramebuffer(spi, EINK_CS, EINK_RST, EINK_BUSY, EINK_DISCHARGE, HEIGHT, WIDTH) display = framebufferio.FramebufferDisplay(t, auto_refresh=False) display.refresh()
For more information on how these displays are driven see: https://www.pervasivedisplays.com/wp-content/uploads/2023/02/4P018-00_04_G2_Aurora-Mb_COG_Driver_Interface_Timing_for_small-size_20231107.pdf
Create a framebuffer for the Aurora CoG display.
Note
Displays of size 1.9” and 2.6” are not tested, and may exibit unexpected behavior.
- Parameters:
spi_bus (busio.SPI) – The SPI bus that the display is connected to
chip_select (microcontroller.Pin) – The pin connected to the displays chip select input
reset (microcontroller.Pin) – The pin connected to the displays reset input
busy (microcontroller.Pin) – The pin connected to the displays busy output
discharge (microcontroller.Pin) – The pin connected to the displays discharge input
width (int) – The width of the display in pixels
height (int) – The height of the display in pixels
power (microcontroller.Pin) – The pin that controls power to the display (optional).
free_bus (bool) – Determines whether the SPI bus passed in will be freed when the frame buffer is freed (optional).
- deinit() None
Free the resources (pins, timers, etc.) associated with this AuroraMemoryFramebuffer instance. After deinitialization, no further operations may be performed.