I succeeded in configuring the library nano-gui (color_setup.py) for an Esp32-pro connected to an Adafruit 1028 ePaper display, but I only see flashing snow on the screen when I tried to run the tbox.py demo script.
I started then to run some basic structions:
Code: Select all
>>> from color_setup import ssd
Init Done.
>>>
>>> from gui.core.writer import Writer
>>> import gui.fonts.arial35 as font_large
>>> Writer.set_textpos(ssd, 0, 0)
(0, 0)
>>> wri = Writer(ssd, font_large, verbose=True)
Orientation: Horizontal. Reversal: False. Width: 296. Height: 128.
Start row = 0 col = 0
>>> from gui.core.colors import *
>>> from gui.widgets.label import Label
labargs = (1, 1, 80)
tbargs = {'fgcolor' : BLACK, 'bdcolor' : BLACK, 'bgcolor' : WHITE}
lab = Label(wri, *labargs , **tbargs)
lab.value(text = 'Hello World')
'Hello World'
lab.show()
Any pointer at this point will be appreciated, thank you.
Ps. Actually a got:
File "drivers/epaper/epd29.py", line 179, in show
RuntimeError: Cannot refresh: display is busy.
But I disabled the check hoping I could see something.
BUSY is connected to the pin 32 on the Esp32-pro
https://www.wemos.cc/en/latest/d32/d32_pro.html#pin