Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epaper4in2 sample code issue #22

Open
Na-Cly opened this issue Aug 19, 2022 · 0 comments
Open

epaper4in2 sample code issue #22

Na-Cly opened this issue Aug 19, 2022 · 0 comments

Comments

@Na-Cly
Copy link

Na-Cly commented Aug 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant