I think, the best way using this displays as a normal display. Do everything by the controller, reading from the display only the touch event, nothing more. Reading by UART interrupt, sending data as normal UART communication, easy to use.
Sedning "12345" text to object t0:
Code: Select all
SendRS232String("t0.txt=")
SendRS232Char(34) //quotation mark
SendRS232String("12345")
SendRS232Char(34)
SendRS232Char(255)
SendRS232Char(255)
SendRS232Char(255)
The display send "A0", "A1" or "A2" if you touch an object. Receiving it by UART interrupt:

- UART Interrupt.jpg (59.32 KiB) Viewed 24166 times
As you see, not necessary to send lots of characters by the display, if you using only some touchable object, the data can be only one byte long.
This two projects created in Flowcode, using only UART commands and UART (RS232) interrupt:

- Nextion HMI 1.jpg (41.28 KiB) Viewed 24166 times

- Nextion HMI 2.jpg (32.85 KiB) Viewed 24166 times