Comments (7)
Just got my Wavshare 1.44 inch hat yesterday, and had the same problem. Went to the Waveshare wiki and looked up the schematic. It's on there(www.waveshare.com/wiki/1.44inch_LCD_HAT), and I was able to modify the st7725_128x128.conf file with the correct pinout:
--display=st7735
--interface=spi
--spi-bus-speed=16000000
--gpio-reset=27
--gpio-data-command=25
--gpio-backlight=24
--width=128
--height=128
--bgr
--h-offset=1
--v-offset=2
--backlight-active=high
All the luma.examples work fine with it using this configuration file. Maybe it could be added to the other stock configurations as st7735_128x128_WShat.conf
or some such.
from luma.lcd.
Can you post picture and config file?
from luma.lcd.
If i knew how to do it i would do (lateron), haha - i use Github for long, but never needed to add a pict ...Sorry.
The conf file, is what is inside the examples...not changed..But here y are:
--display=st7735
--interface=spi
--spi-bus-speed=16000000
--gpio-reset=24
--gpio-data-command=23
--gpio-backlight=18
--width=128
--height=128
--bgr
--h-offset=1
--v-offset=2
--backlight-active=high
from luma.lcd.
sudo python3 ./colors.py -d st7735 --height 128 -i spi
Display: st7735
Interface: spi
Dimensions: 128 x 128
Display is flashing white & black (each 100%)
if i use "bounce.py" its flashing alot quicker
If i use the "--config", it stays white right now (nothing happening).
Its abit different to last time, i tried.
from luma.lcd.
@LocutusOfPeng, I have a 1.8 inch Waveshare ST7735, which has 160x128 pixels. If your display is the 1.8 inch too, you might try this config, which works for me (well, most of the time, sometimes the demo doesn't display anything, restarting the demo then helps):
--interface=spi
--spi-bus-speed=16000000
--gpio-reset=24
--gpio-data-command=23
--gpio-backlight=18
--width=160
--height=128
--backlight-active=high
However, the display's backlight always stays on if GPIO18 is not at low level. No sure whether this is intented, but the GPIO port falls back to mode IN if no script is running, which causes the backlight to be turned on again after it was turned off shortly. This might be caused by an internal pull-up resistor in the display's controller, one can see that brightness is slightly increased if BL input is connected to Vcc.
from luma.lcd.
@wifi4u thanks!
My name missing a "uin" in yr text...its useless from github to shorten 3 chars with 3 other chars, ha.
No, i use a 128x128 ...but i give it a try .... just now im very busy (and this display is no longer my main focus, right now - needed to wait too long).
from luma.lcd.
yes, it works now very well. THANKS!
Sorry, for long delay.
from luma.lcd.
Related Issues (20)
- test_ili9341 hangs HOT 3
- Error trying PWMBacklight with ili9341 HOT 23
- Help with speed difference between SBCs HOT 15
- ili9341 and PWM support? HOT 1
- Thoughts on Bridgetek EVE (Embedded Video Engine) HOT 11
- Support for ili9486 HOT 9
- Trying to get this to work with Spotpear LCD HOT 20
- ST7789 - maximum height and width? HOT 9
- Multiple TFT Screens (ST7735) HOT 2
- Standard 'gpio_LIGHT' pin causes crash of I2S HOT 1
- Support ILI9488 3.5" (320x480) displays HOT 4
- The function device.backlight(False) turns on the lights, instead of device.backlight(True) HOT 7
- DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01)
- RuntimeError: This module can only be run on a Raspberry Pi! HOT 2
- Comment error: HT1621 may actually 1/3 bias HOT 2
- ILI9341 issue?
- st7735 white screen HOT 1
- Question: HD44780 Cursor Show/Hide and Line/Blink
- This is simply a question / request: Have you ever consider porting this great project to micropython? HOT 2
- How to create custom characters, use function _make_custom HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luma.lcd.