Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hierophect/323fa02c1844f1d33cb829a814ad2fab to your computer and use it in GitHub Desktop.
Save hierophect/323fa02c1844f1d33cb829a814ad2fab to your computer and use it in GitHub Desktop.
spi = board.SPI() # Uses SCK and MOSI
epd_cs = board.D9
epd_dc = board.D10
epd_reset = board.A4
epd_busy = board.A3
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs,
reset=epd_reset, baudrate=1000000)
DISPLAY_WIDTH = 400
DISPLAY_HEIGHT = 300
display = adafruit_il0398.IL0398(display_bus, width=DISPLAY_WIDTH,
height=DISPLAY_HEIGHT,
rotation=0, busy_pin=epd_busy,
highlight_color=0x000000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment