adafruit_epd.epd
- Adafruit EPD - ePaper display driver¶
CircuitPython driver for Adafruit ePaper display breakouts * Author(s): Dean Miller
- class adafruit_epd.epd.Adafruit_EPD(width: int, height: int, spi: SPI, cs_pin: DigitalInOut, dc_pin: DigitalInOut, sramcs_pin: DigitalInOut, rst_pin: DigitalInOut, busy_pin: DigitalInOut)¶
Base class for EPD displays
- command(cmd: int, data: bytearray | None = None, end: bool = True) int ¶
Send command byte to display.
- fill_rect(x: int, y: int, width: int, height: int, color: int) None ¶
fill a rectangle with the passed color
- image(image: Image) None ¶
Set buffer to value of Python Imaging Library image. The image should be in RGB mode and a size equal to the display size.
- line(x_0: int, y_0: int, x_1: int, y_1: int, color: int) None ¶
Draw a line from (x_0, y_0) to (x_1, y_1) in passed color
- power_up() None ¶
Power up the display in preparation for writing RAM and updating. must be implemented in subclass
- set_black_buffer(index: Literal[0, 1], inverted: bool) None ¶
Set the index for the black buffer data (0 or 1) and whether its inverted
- set_color_buffer(index: Literal[0, 1], inverted: bool) None ¶
Set the index for the color buffer data (0 or 1) and whether its inverted
- set_ram_address(x: int, y: int) None ¶
Set the RAM address location, must be implemented in subclass