Hi everyone,
I've a problem with a GEN4-ULCD43DCT-CLB (gen4 capacitive touch).
LCD is connected to an Arduino Uno (with software serial, but I've tried with HW serial too and the problem is the same), with SPE loaded at 115200bps.
Arduino sends command and creates the graphics, some writes, some rectangles etc..
But when I implement the touch functions, doesn't work properly.
The syntax of the touch control routine is this:
Graphics is ok, but I don't see any responses when touching the lcd.
Trying with the example code on workshop ViSi environment (this: https://forum.4dsystems.com.au/node/61211) it works fine. Then it seems to be some issues with the Arduino communication or something in the Arduino code.
Can someone help me to solve this?
Thanks, Marco
I've a problem with a GEN4-ULCD43DCT-CLB (gen4 capacitive touch).
LCD is connected to an Arduino Uno (with software serial, but I've tried with HW serial too and the problem is the same), with SPE loaded at 115200bps.
Arduino sends command and creates the graphics, some writes, some rectangles etc..
But when I implement the touch functions, doesn't work properly.
The syntax of the touch control routine is this:
Code:
Display.touch_Set(TOUCH_ENABLE); unsigned int touchStat = Display.touch_Get(TOUCH_STATUS); if(touchStat == TOUCH_PRESSED){ unsigned int x = Display.touch_Get(TOUCH_GETX); unsigned int y = Display.touch_Get(TOUCH_GETY); Display.gfx_MoveTo(10,10); Display.putstr("X= "); Display.putstr(x); Display.putstr("\nY= "); Display.putstr(y); }
Trying with the example code on workshop ViSi environment (this: https://forum.4dsystems.com.au/node/61211) it works fine. Then it seems to be some issues with the Arduino communication or something in the Arduino code.
Can someone help me to solve this?
Thanks, Marco
Comment