Git Product home page Git Product logo

Comments (7)

thijstriemstra avatar thijstriemstra commented on May 30, 2024

Can you post picture and config file?

from luma.lcd.

LocutusOfPenguin avatar LocutusOfPenguin commented on May 30, 2024

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.

LocutusOfPenguin avatar LocutusOfPenguin commented on May 30, 2024

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.

wifi4u avatar wifi4u commented on May 30, 2024

@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.

LocutusOfPenguin avatar LocutusOfPenguin commented on May 30, 2024

@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.

Rippert avatar Rippert commented on May 30, 2024

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.

LocutusOfPenguin avatar LocutusOfPenguin commented on May 30, 2024

yes, it works now very well. THANKS!

Sorry, for long delay.

from luma.lcd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.