Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
Werner_G
Posts: 9
Joined: Fri Sep 13, 2019 8:15 am
Location: Dortmund / Germany

Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Post by Werner_G » Tue Jan 07, 2020 1:12 pm

Santa Claus brought me these nice gadgets, but I need help to get it worked. I am using the on-board TFT-Connector. But so far I had no luck in displaying anything.

My definition is:

Code: Select all

from machine import Pin, SPI
import epaper2in13

sck = Pin(18)
miso = Pin(19)
mosi = Pin(23)
dc = Pin(27)
cs = Pin(14)
rst = Pin(33)
busy = Pin(32)
spi = SPI(2, baudrate=100000, polarity=0, phase=0, sck=sck, mosi=mosi, miso=miso)

w = 104
h = 212
x = 0
y = 0

e = epaper2in13.EPD(spi, cs, dc, rst, busy)
e.init()
It would be fine if somebody could post a working code here. Thanks a lot!

User avatar
Werner_G
Posts: 9
Joined: Fri Sep 13, 2019 8:15 am
Location: Dortmund / Germany

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Post by Werner_G » Fri Jan 10, 2020 7:50 am

To precise my problem a little bit more:
LOLIN's e-paper-display has pins only for RST, DC, MOSI, SCK and CS. Can I get rid of MISO and BUSY?
The D32Pro is using Espressif's WROVER-B-Modul.
I cannot find any example using these new products.

User avatar
Werner_G
Posts: 9
Joined: Fri Sep 13, 2019 8:15 am
Location: Dortmund / Germany

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Post by Werner_G » Sun Jan 12, 2020 2:45 pm

Meanwhile I understood the H/W-SPI-code on ESP32 and was able to see first activities on the screen. So, settings and pin definitions seems to be OK now:

Code: Select all

import epaper2in13
from machine import Pin, SPI

cs = Pin(14)
busy = Pin(32)
rst = Pin(33)
dc = Pin(27)

vspi = SPI(2, baudrate=100000, polarity=0, phase=0, sck=Pin(18), mosi=Pin(23), miso=Pin(19))

e = epaper2in13.EPD(vspi, cs, dc, rst, busy)
e.init()

w = 104
h = 212
x = 0
y = 0

e.display_frame()
When turning on, the display flashes 4 times black/white. When writing

Code: Select all

e.display_frame('Hallo Welt')
instead, I get this error message:

Code: Select all

TypeError: function takes 1 positional arguments but 2 were given
Has somebody a simple routine to test or write text?

User avatar
Werner_G
Posts: 9
Joined: Fri Sep 13, 2019 8:15 am
Location: Dortmund / Germany

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Post by Werner_G » Tue Feb 04, 2020 11:59 am

I'm still struggeling in getting any activity on the epaper-display (the Arduino-examples from LOLIN are working fine). When I now reduce the baudraute to 10MHz instead of 80MHz, I still see not any sign, but the REPL reports:

Code: Select all

[0;32mI (2039350) gpio: GPIO[23]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
[0;32mI (2039350) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
[0;32mI (2039360) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
I don't know what does it mean. Is there anybody having experience with the LOLIN-display?

T-Wilko
Posts: 10
Joined: Thu Sep 19, 2019 8:08 am

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Post by T-Wilko » Thu Apr 09, 2020 3:07 pm

Hi Werner,

I'm curious as to what the conclusion was to your efforts, as I now find myself in your shoes with the exact same board and epaper module!

Cheers,
Thomas

Post Reply