Giter VIP home page Giter VIP logo

Comments (7)

thijstriemstra avatar thijstriemstra commented on June 15, 2024

Very generic question, can you be more specific?

from luma.lcd.

markbirss avatar markbirss commented on June 15, 2024

sure, currently the ST7920 oled screen is unsupported, what changes are required to add support for this screen

from luma.lcd.

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

ST7920 is an LCD screen rather than OLED.

You would need to find the datasheet for the device, read it and understand how to send data to the display (whether that is via I2C, SPI or parallel bIt-banging). Then use one of the other implementations as a guide, implement a class that extends device (see https://luma-oled.readthedocs.io/en/latest/api-documentation.html) where its display() method takes a pillow image and converts the pixels to the correct commands and data for device

from luma.lcd.

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

Moving to luma.lcd ....

from luma.lcd.

markbirss avatar markbirss commented on June 15, 2024

Ok, understood, thank you for your feedback

I will close the issue but leave these notes below

I have found much of that information but, I dont have the depth of understanding at the moment to put it into a implementation.

Will leave it here if anyone else interested.

Datasheet
https://www.lcd-module.de/eng/pdf/zubehoer/st7920_chinese.pdf

Enable SPI mode is simply done by connecting PSB to GND
Enable Parallel mode by connecting PSB to 5V

How th screen works
https://www.instructables.com/id/The-Secrets-of-an-Inexpensive-Ubiquitous-Chinese-L/

U8G2 ports
https://github.com/ribasco/u8g2-rpi-demo

https://github.com/olikraus/u8g2

from luma.lcd.

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

Related issue: #46
Related PR: #98

from luma.lcd.

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

I think the PR for this stalled because driving it via parallel bit-banging was going to be awkward.
If this is true:

Enable SPI mode is simply done by connecting PSB to GND

then it might be straightforward to getting it working

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.