Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4782

Interfacing (DSI, CSI, I2C, etc.) • Re: SPI display for RPI5 with dtoverlay?

$
0
0
@BUGSworstnightmare - I wonder if you managed to get any further with the Touch controller?

Waveshare's response my request for the init strings for the SKU27579 Touch panel was somewhat predictable - "go check the wiki for that panel!"

https://www.waveshare.com/wiki/2.8inch_ ... _Touch_LCD

There is a link to a download containing example code on the wiki

https://files.waveshare.com/wiki/2.8inc ... erryPi.zip

You probably have this already but it's included here for others if they are interested.

I though it might be worth the effort to try out some of the examples and to read through the scripts and code to see if it offered any clues for a suitable overlay. Possibly a dumb idea but as I am trying to learn it's worth the effort. I have two DUTs. One is a Pi4 running latest 64 bit Bullseye with kernel 6.1.21 -v8+ and the other is a Pi5 with latest 64 bit Bookworm and kernel Each DUT is connected to its own Waveshare LCD SKU27579.

One of the Python scripts from the above download <2inch8_LCD_test.py> sends a few images to the LCD and then pops up a touch panel on the LCD. The script is invoked from a terminal running on a connected HDMI screen and subsequent touches on the LCD write the X and Y co-ordinates to the terminal. It looks similar but less verbose than the evtest output from your last post code segment.

I found the X and Y co-ordinates matched pretty closely to the centre and four outer corners of the LCD with X1, Y1 bottom left and X239, Y318 top right of LCD. Not bad for a 240x320 panel. Both DUTs behaved the same.

Code:

ok@RaspberryPi:~/2.8inch_Capacitive_Touch_LCD/Python $ python 2inch8_LCD_test.py TouchPad_ID:0xf,0x0,0xca,0xcaTouchPad_X_MAX:240    TouchPad_Y_MAX:320D1F4:0xb,0x0,0x8,0x0D1F8:0xf0,0x0,0x40,0x1D1FC:0xf,0x0,0xca,0xcaD200:0xff,0xff,0xff,0xffD204:0x5,0x4b,0x48,0x1D208:0x1,0x0,0x0,0x1CACA Read:0xcacaSuccess:Detected CST328.INFO:root:show imageTouch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=98   Y=148   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=102   Y=156   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=1   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=239   Y=318   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=319   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:Touch : X=1   Y=1   points=1CACA Read:^CDEBUG:root:spi endDEBUG:root:gpio cleanup...INFO:root:quit:
There is C code in the C directory of the aforementioned download that seems to match the Python scripts for functionality so someone with better understanding of C might be able to glean something that might help with the overlay?

I'm happy to test anything that needs testing or provide info from my DUTs.

Statistics: Posted by peter.arq — Sun Aug 25, 2024 6:10 pm



Viewing all articles
Browse latest Browse all 4782

Trending Articles