Comments (19)
Same random flashing bar for the bounce demo.
from luma.lcd.
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.
Note to self: Should really check-in some different configuration files for various devices
from luma.lcd.
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..
from luma.lcd.
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:
from luma.lcd.
Both the bounce and 3d box demos work as expected too
from luma.lcd.
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.
I hadnt noticed the arrow. at. all.
from luma.lcd.
I would expect the arrow side to be 'out' or something but I guess not.
from luma.lcd.
or maybe "this way up" 📦
from luma.lcd.
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.
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.
This is on an RPi 2. How would i change the contrast ratio (that's probably it..)?
from luma.lcd.
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.
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.
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.
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.
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.
@somu1795 yep, you're right, it changed after this ticket was created.
from luma.lcd.
Related Issues (20)
- 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 3
- 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
- Is the ILI9341V display supported? HOT 4
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.