Digole
©DIGITAL
SOLUTIONS

Serial Display emulator    New Display User manual

Forum login or
Login:
Password:
  
Forum Catagory
Digole Serial Display (210)
  12864 LCD/OLED module (22)
  24064 LCD module (3)
  Color LCD Modules (27)
  Color OLED module (20)
  Online Emulater (5)
  Universal GLCD module (1)
  Universal Text LCD module (2)
Mini Display Panels (0)
  Mini LCDs (0)
  Mini OLEDs (0)
Pattern Drive Module (0)
~Buy & Sell on Digole (2)
~Others~ (5)
Forum : Digole Serial Display : Color LCD Modules :

 Search Forum.. 
 Creat New Topic   Reply 

Trying to get reliable readings from 320x240 touch screen over SPI

 I've got a bunch of LCd modules with fw 6.2

The touch screen behaviour is different to earlier versions.  Previously, I could poll the SPI with SS held high to see if the touch screen was ready.  The newer touch screen doesn't support this.  I can read it successfully, but the touch screen is unreliable if I try to read it after "SC" screenclear or "SD" rotation.  How can I tell if the touch screen is ready?  If the touch screen isn't ready and I write "RPNXYI", I get 0x49000000 or sometimes 0xFF00F000

 

Also, the contrast is lower.  Is ti possible to increase it?

RE:Trying to get reliable readings from 320x240 touch screen over SPI

Hi There,

Please insert a delay 50ms after reading data commands sent to display.

Use this way to pull out the data from display via SPI:

1) set SS to high;

2) Check SDO, if SDO low, go back 1);

3) if SDO high, means data is ready to read out. set SS to low;

4) shift out 8bit.

5) go back 1) if need read out more bytes

To check if the touch panel pressed, use "RPNXYI" to read 2 integers and check if the value in the range of screen's pixels.

The return coordinate data will map to the setting of the orientation set by "SD".

https://www.digole.com/m/RPNXY.htm

Copyright Digole Digital Solutions/Digole Technologies Inc., 2008-2024. All rights reserved.
Powered by Digole