Replies: 8 comments 11 replies
-
From Pi4j or the repos referenced from the pi4j web site, no. Nothing you could just load and run. If you were to consider writing the code there are other devices that may assist in the development of this one. and several other types of display controlled by various means on https://github.com/Pi4J/pi4j-example-devices |
Beta Was this translation helpful? Give feedback.
-
What would be the pi4j equivalent of the following python:
|
Beta Was this translation helpful? Give feedback.
-
First, SPI does not presently work on a Pi5, that provider work will be done in the future. The older Pi work fine with the PiGpio SPI provider. I think when I looked at your chip it also supported I2C, I think that connection would be a more simple first job. Change to SPI later. |
Beta Was this translation helpful? Give feedback.
-
I do have some code that will drive that display. It's essentially a port of the Adafruit code to Pi4J. I can send you that if you'd like. However, as SPI isn't ready on the Pi 5 you could see if you can get hold of an earlier model (though not a zero or 1 as there are issues with the v6 architecture). |
Beta Was this translation helpful? Give feedback.
-
I see you are going to continue working on the display. I had ordered a rotary encoder and it arrive this weekend. I coded up support using the adafruit python as docs, since this HW company won't release specs on the firmware they have running on the chip. |
Beta Was this translation helpful? Give feedback.
-
My RP3 finally showed up so I went back to the SPI/ST7789. I then proceeded to log the commands and data the python script is sending when displaying a single pixel: width: 240 I then proceeded to mimic this output in the java code - still no luck. The only thing I can get working is to turn on/off the backlight. I think I found the spec: https://www.rhydolabz.com/documents/33/ST7789.pdf a - when the display fails to respond - is there anyway to clear/fix the device without a reboot ? |
Beta Was this translation helpful? Give feedback.
-
I am now able to display 180x180 pixels of the Display, at 16 bits per pixel that is 64800 bytes. When I try to go any larger I get the following error: The python code is working fine when sending 115200 bytes to the display. |
Beta Was this translation helpful? Give feedback.
-
I am almost ready to mark this as done! at 0:04 I start updating 1 pixel at a time ( x -> 0 to 240, y -> 0 to 240 ) While trying to debug this, I change the number of pixels written ( x -> 0 to 120, y -> 0 to 120 ) and the location/number of "dead" pixels changes. I increased logging output and did not see any issue. |
Beta Was this translation helpful? Give feedback.
-
I currently have 240x240 LCD display ( https://www.adafruit.com/product/3787 ) working on the raspberry pi with python.
Is there any existing library/project that will allow me to control it using pi4j ?
Beta Was this translation helpful? Give feedback.
All reactions