Closed mnrozhkov closed 7 years ago
See the comment in #39 - i took a decision (wrongly) to hardcode the resolution to 160x128 thinking that was the only resolution. I will push a change so it supports 128x128 but it won't be for another few days.
As to the issue with the backlight, i don't know. I have bought one of these devices but haven't had the chance to plug it in. I will update the ticket with my findings
@mnrozhkov there is a new version that supports 128x128 variants of this device. If you upgrade with:
$ sudo -H pip install --upgrade luma.core luma.lcd
The backlight was originally written for the PCD8544 which is enabled as active-low, whereas the ST7735 enables the backlight as active-high. It is now configurable, so supports either setting.
Lastly, if you then pull from master for the luma.examples repo, and you should find a conf/st7735_128x128.conf
file with the correct settings (well, this works on the 128x128 device I have).
Let me know how you get on,
@mnrozhkov any news?
@rm-hull thanks a lot! It works well. I've updated library and changed conf.
I use LCD to build eyes for my robot. I'll share with you how it will word as soon as I finish this. Your library is priceless help for our project!
Best wishes!
Hi! I have this 1.44" SPI 128x128 TFT LCD Display (RED PCB V1.1) with following specs: conf/st7735.conf:
1) When running an example
sudo python examples/3d_box.py -f conf/st7735.conf
, there is nothing on the screen! Even the backlight is not enabled.2) After I connect
gpio-backlight
pin directly to 3.3V source - it works fineNotes:
It seems that code can't reach/control some of the required GPIO or numbering is wrong. (I've used BCM numbering)
When I follow 'Python usage' instructions nothing happens when I try 'draw.rectangle' or 'draw.text'
When I try to get the 'device' object details in runtime (run with -f conf/st7735.conf), I see the unexpected arguments for screen size (my LCD has width=128, height=128):
Do you have any suggestions?