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, height, spi, cs_pin, dc_pin, sramcs_pin, rst_pin, busy_pin)¶ Base class for EPD displays
-
command
(cmd, data=None, end=True)¶ Send command byte to display.
-
display
()¶ show the contents of the display buffer
-
fill
(color)¶ fill the screen with the passed color
-
fill_rect
(x, y, width, height, color)¶ fill a rectangle with the passed color
-
hardware_reset
()¶ If we have a reset pin, do a hardware reset by toggling it
-
height
¶ The height of the display, accounting for rotation
-
hline
(x, y, width, color)¶ draw a horizontal line
-
image
(image)¶ 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, y_0, x_1, y_1, color)¶ Draw a line from (x_0, y_0) to (x_1, y_1) in passed color
-
pixel
(x, y, color)¶ draw a single pixel in the display buffer
-
power_down
()¶ Power down the display, must be implemented in subclass
-
power_up
()¶ Power up the display in preparation for writing RAM and updating. must be implemented in subclass
-
rect
(x, y, width, height, color)¶ draw a rectangle
-
rotation
¶ The rotation of the display, can be one of (0, 1, 2, 3)
-
set_black_buffer
(index, inverted)¶ Set the index for the black buffer data (0 or 1) and whether its inverted
-
set_color_buffer
(index, inverted)¶ Set the index for the color buffer data (0 or 1) and whether its inverted
-
set_ram_address
(x, y)¶ Set the RAM address location, must be implemented in subclass
-
text
(string, x, y, color, *, font_name='font5x8.bin', size=1)¶ Write text string at location (x, y) in given color, using font file
-
update
()¶ Update the display from internal memory, must be implemented in subclass
-
vline
(x, y, height, color)¶ draw a vertical line
-
width
¶ The width of the display, accounting for rotation
-
write_ram
(index)¶ Send the one byte command for starting the RAM write process. Returns the byte read at the same time over SPI. index is the RAM buffer, can be 0 or 1 for tri-color displays. must be implemented in subclass
-