Created
July 29, 2020 03:33
-
-
Save hierophect/323fa02c1844f1d33cb829a814ad2fab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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