Closed DusKing1 closed 2 years ago
NVM, I have a quick fix in my PR.
Thanks for the clear report. The CWriter class is intended for color displays with Writer being the monochrome equivalent.
While your mod will probably work fine, the way it is supposed to be used with a monochrome display is as follows. In main.py:
# from gui.core.writer import CWriter
from gui.core.writer import Writer # Monochrome writer
and in your code wherever you need a Writer:
wri = Writer(ssd, arial10, verbose=False) # No colors specified
Please could you try this and report back. I'll review the docs.
Incidentally you don't need to copy the entire drivers tree to your device - although the unused drivers only consume Flash space.
I've updated the example code in README.md
to clarify usage with monochrome displays.
Thank you for your reply, I'll test it according to your suggestion once I back to my test hardwares, like next Thursday or later.
Hi, I just tested on my own hardware and your solution works for me. Related PR closed. Thank you for your awesome work!
Hi, thanks for your great job! I really like this micro-gui framework.
But when I'm trying to use it on a 128x64 SSD1306 I2C display, I got:
I copied all necessary
.py
scripts (I think), my file structure is like this:My
hardware_setup.py
isand my
main.py
is: