micropython-waveshare-epaper icon indicating copy to clipboard operation
micropython-waveshare-epaper copied to clipboard

epaper4in2 sample code issue

Open Na-Cly opened this issue 3 years ago • 0 comments

Hey guys,

I'm trying to get this display to connect and it's erroring out on the SPI line in the sample code for the 4.2 inch display.

Pasting line by line, and adjusting my pins to match what are on the ESP8266 I get this output.

>>> import epaper4in2
from machine import Pin, SPI


sck = Pin(14)
miso = Pin(12)
mosi = Pin(13)
dc = Pin(4)
cs = Pin(15)
rst = Pin(3)
busy = Pin(2)
>>> spi = SPI(2, baudrate=20000000, polarity=0, phase=0, sck=sck, miso=miso, mosi=mosi)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError:

What's odd is there's no error messaged passed back with the value error. I know that the SPI function is part of micropython and not part of your library, but I was wondering if anyone knew what the issue could be.

Physical wiring for wemos d1 mini: VCC -> 3.3v GND -> GND DIN -> D6 -> GPIO12 CLK -> D5 -> GPIO14 CS -> D8 -> GPIO15 DC -> D2 -> GPIO4 RST -> RX -> GPIO3 BUSY -> D4-> GPIO2

Let me know if I'm way off on anything, but I can't seem to figure out what the issue is.

Thanks

Na-Cly avatar Aug 19 '22 15:08 Na-Cly