Coder Social home page Coder Social logo

Comments (19)

thijstriemstra avatar thijstriemstra commented on August 24, 2024

Same random flashing bar for the bounce demo.

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

Is the wiring as per the diagram in the docs? If so, create a file called pcd8544.conf with the content as follows:

--display=pcd8544
--interface=spi
--spi-bus-speed=32000000
--bcm-reset=24
--bcm-data-command=23
--bcm-backlight=18
--width=84
--height=48

Then invoke an example as follows:

$ examples/demo.py -f pcd8544.conf

The default values for the DC and RST pins in code are different to that on the wiring diagram

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

Note to self: Should really check-in some different configuration files for various devices

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

Unfortunately that didn't work either, the screen stays on with active backlight but nothing happens. Attached some pictures. You sure that config is correct? Maybe my screen is broken..

img_20170127_222601_small

img_20170127_222423_small

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

From just now:

$ pip list | grep luma
luma.core (0.1.13)
luma.lcd (0.2.1)
luma.led-matrix (0.4.2)
luma.oled (2.1.0)

$ cat pcd8544.conf 
--display=pcd8544
--interface=spi
--spi-bus-speed=32000000
--bcm-reset=24
--bcm-data-command=23
--bcm-backlight=18
--width=84
--height=48

$ python examples/greyscale.py -f pcd8544.conf

produces:

image

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

Both the bounce and 3d box demos work as expected too

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

Ok notice I have these pins soldered on the other side of the board. You're using the ones with an arrow, so let me start soldering ;)

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

I hadnt noticed the arrow. at. all.

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

I would expect the arrow side to be 'out' or something but I guess not.

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

or maybe "this way up" 📦

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

Unfortunately it still doesn't work, the line or bar that I saw before, is now visible on the bottom of the screen but other than that, empty screen. Can you post a picture of the back of your screen, I'll find a better camera and do the same for mine.

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

Can't take a pic of the back unfortunately, the LCD is glued onto the stripboard with epoxy resin.

Did you try supplying 5V or 3V3 ? (try both)

Also try experimenting with setting different contrast ratios, some devices are calibrated differently

These are quite primitive controllers (compared to the SSD13xx at least), so there's not much to configure.

Alternatively, try a different lib (Adafruit one?) and see if you can get that working... also, i seem to remember: didnt you have some issues with one of your SPI oleds on a RPi3 ?

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

This is on an RPi 2. How would i change the contrast ratio (that's probably it..)?

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

The demo.py should cycle through the whole contrast range. If you run that does the image fade in & out?

https://github.com/rm-hull/luma.examples/blob/master/examples/demo.py#L60-L71

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

No I don't see anything at all (at least 99% of the screen). I'll get my hands on a better camera tomorrow and posts some pictures.

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

or maybe "this way up"

well, the diagram seems to use the ones on the bottom (although there's not an arrow on the picture) judging from the rotation of the screen and the thicker side of the screen frame at the top of the picture.

This is why I initially soldered and wired on that side of the display. Yours is on the opposite side and it works. Weird? Should both sides return equal results?

https://luma-lcd.readthedocs.io/en/latest/_images/wiring-diagram.png

from luma.lcd.

rm-hull avatar rm-hull commented on August 24, 2024

I imagine the corresponding top and bottom pins are connected (e.g DIN to DIN, CLK to CLK, etc)

I mean "this way up" to just indicates the usual orientation, rather than anything to do with the pin connections

from luma.lcd.

 avatar commented on August 24, 2024

I think , it should be "--gpio-data-command" instead of "--bcm-data-command" , and "--gpio-reset" instead of "--bcm-reset" for the pins 23 and 24(which are gpio numbering), and "--bcm-backlight" doesn't work, it should be "--gpio-backlight" for pin 18, or we can use bcm pins.

from luma.lcd.

thijstriemstra avatar thijstriemstra commented on August 24, 2024

@somu1795 yep, you're right, it changed after this ticket was created.

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.