2023-08-27 13:09:24 +00:00
|
|
|
# WIRING
|
|
|
|
# 15 BUSY
|
|
|
|
# 4 DC
|
|
|
|
# 2 Rst
|
|
|
|
# 5 CS
|
|
|
|
# 23 SDA
|
|
|
|
# 18 SCL
|
|
|
|
|
|
|
|
from machine import Pin, SPI
|
|
|
|
import gc
|
|
|
|
|
|
|
|
# *** Choose your color display driver here ***
|
2023-08-30 08:06:53 +00:00
|
|
|
from drivers.epaper.epd29_ssd1680 import EPD as SSD
|
2023-08-27 13:09:24 +00:00
|
|
|
|
|
|
|
dc = Pin(4, Pin.OUT, value=0)
|
|
|
|
rst_pin = 2
|
|
|
|
cs = Pin(5, Pin.OUT, value=1)
|
|
|
|
busy = Pin(15, Pin.IN)
|
|
|
|
|
|
|
|
spi = SPI(1, baudrate=10000000, sck=Pin(18), mosi=Pin(23))
|
|
|
|
gc.collect() # Precaution before instantiating framebuf
|
|
|
|
ssd = SSD(spi, cs, dc, rst_pin, busy, landscape=True)
|