Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft
Created October 12, 2025 13:08
Show Gist options
  • Select an option

  • Save Akkiesoft/352bdc1fe12c79a8e946bfd64627f753 to your computer and use it in GitHub Desktop.

Select an option

Save Akkiesoft/352bdc1fe12c79a8e946bfd64627f753 to your computer and use it in GitHub Desktop.
Using EPDA0213E5_4C with CircuitPython

Report for EPDA0213E5_4C

Using with CircuitPython

We can use adafruit_jd79661 library. https://docs.circuitpython.org/projects/jd79661/en/latest/

Wirering: https://github.com/MayQueenTechCommunity/PIXPAPER-213-C/blob/main/RPI-PICO_PIXPAPAER-213-C.md

Script:

import time
import busio
import board
import displayio
from fourwire import FourWire
import adafruit_jd79661

spi = busio.SPI(clock=board.GP18, MOSI=board.GP19, MISO=None)
epd_cs = board.GP17
epd_dc = board.GP16
epd_reset = board.GP20
epd_busy = board.GP21

display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)

display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)

time.sleep(1)

display = adafruit_jd79661.JD79661(
    display_bus,
    width=250,
    height=122,
    busy_pin=epd_busy,
    rotation=270,
    colstart=0,
    highlight_color=0xFFFF00,
    highlight_color2=0xFF0000,
)

time.sleep(1)  # Wait a bit

g = displayio.Group()
display.root_group = g

pic = displayio.OnDiskBitmap("/epd_test.bmp")
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
g.append(t)
display.refresh()

while True:
    pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment