Giter VIP home page Giter VIP logo

Comments (7)

raf59 avatar raf59 commented on June 15, 2024 1

Perfect !!!
Now, everything is working fine !
Thank you for your answer and also for this awesome library. Good job!

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on June 15, 2024

@raf59 you probably need to specify amount of degrees rotation instead.

from luma.lcd.

raf59 avatar raf59 commented on June 15, 2024

Thanks for your answer @thijstriemstra !
I'm not sure to understand.
According to the doc, "rotate" option can accept only 0, 1, 2 or 3.
How would you specify the amount of degrees rotation ?
For the moment, even without defining a rotation, the screen doesn't turn on if I don't get the "device" object using get_device().

from luma.lcd.

rm-hull avatar rm-hull commented on June 15, 2024

Try removing cs_high=True, when initializing SPI

from luma.lcd.

raf59 avatar raf59 commented on June 15, 2024

Oh thank you very much @rm-hull .
I don't know why I added this option. Probably a bad copy-paste.
Now the screen is working but the backlight keeps off.
I think it's due to the backlight-active option. I don't know how to pass this option to the device when initializing it.
The only way I found to turn the backlight on is to manually set the GPIO 18 high.

import RPi.GPIO as GPIO
GPIO.setup(18, GPIO.OUT)
GPIO.output(18, 1)

Is there a cleaner way to do it ?

from luma.lcd.

rm-hull avatar rm-hull commented on June 15, 2024

https://luma-lcd.readthedocs.io/en/latest/python-usage.html#backlight-control

from luma.lcd.

rm-hull avatar rm-hull commented on June 15, 2024

oh, you can pass active_low=True|False when initializing the device to indicate whether the backlight is active low or high

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.