I'm trying to use MicroPython drive epaper since 3 weeks ago.
Before I post this, i have searched in the forum, and reference some idea, thanks for them.
But it still can't be run correctly on my board.Hope you can help me.
I use driver with this https://github.com/mcauser/micropython- ... er2in7b.py.
Here is the code
Code: Select all
from machine import Pin, SPI
import time
import epaper2in7b
# SPIV on ESP32
miso = Pin(19) # Not physically connected
sck = Pin(18) # VSPICLK
mosi = Pin(23) # e-paper driver board name is Din,GPIO23
dc = Pin(22) # VSPIWP
cs = Pin(5) # VSPICS0
# rst = Pin(21) # VSPIHD,Not use Pin 21, because my board don't have pin to connect. Is there the probroem is?
rst = Pin(15)
busy = Pin(4) GPIO4
spi = SPI(2, baudrate=100000, polarity=0, phase=0, sck=sck, mosi=mosi, miso=miso)
# spi = SPI(2, baudrate=115200, polarity=1, phase=1, sck=sck, mosi=mosi, miso=miso)
e = epaper2in7b.EPD(spi, cs, dc, rst, busy)
e.init()
Here is my ESP32 board elementary diagram.
Is something wrong? Or how should it be, to debug this.