Register / Login  |  Desktop view  |  Jump to bottom of page

IoAbstraction & TaskManagerIO » Implementing touch screen interfaces for new devices

Author: davetcc
25/09/2021 15:55:18
This is a catch-all item for the implementation of touch support in IoAbstraction. We think that to have at least relatively comprehensive support we'd need:

* Support for resistive screens - IE +-X, +-Y. DONE and in production.
* Support for BSP touch functions within mbed for STM32. DONE and in production.
* Support for ESP32 based touch pins using the IDF API. DONE and in production for tcMenu only (move back to IoAbstraction?).
* Support for the XPT2046 device. DONE and working locally.
* Document the method for implementing a custom touch device . This will allow others to easily write the code needed to integrate another touch driver. DONE, example generated in IoAbstraction for this.
* Support for the FT6206 / CST026 so we can support the Adafruit capacitive touch units. In progress.


Author: davetcc
25/09/2021 16:06:48
Is the FT6236 device similar to FT6206? If so it may be that one will work for the other?

Author: Lagomorphs
30/09/2021 19:08:26
You can gets lots of cheap SPI TFT touch screens on ebay for peanuts, they all use the XPT2046. I've bought lots of them and they all work fine.

[Thumb - Capture.JPG]
Filename Capture.JPG
Description No description given
Filesize 288 Kbytes
Downloaded 1593 time(s)
[Disk] Download


Author: davetcc
03/10/2021 12:33:18
Many thanks for that, I’ve ordered one now. Looking forward to it arriving as I have a board set up ready!

Author: davetcc
19/10/2021 17:29:03
This work is complete now, 2.2.5 is now released supporting FT6206 and XPT2046.

Author: pruttelherrie
15/01/2022 19:27:02
How does this work from a users' perspective? How do 'clicks' and 'scrolls' work? I'm working on a new project and I haven't decided what input to use: encoder, joystick or touch. Until now I've used only encoders and while that works absolutely fine, I'm wondering if joystick or touch would give a better experience.

Author: davetcc
16/01/2022 20:52:50
Touch works fairly well with all controls. The only thing that isn’t implemented at the moment - mainly because I’ve not really needed it is scrolling. Normally I make sure that all the controls fit on a page.

This does mean there’s a slight hole around list items at the moment. But it’s not unfixable, just needs a bit of thought.

The touch support works somewhat like a rotary encoder and even implements the encoder interface. The touch works for most items in a similar way to clicking. For many situations it is almost invisible.

In display takeover situations you can get hold of the touch manager yourself. The esp amplifier example does that.




Register / Login  |  Desktop view  |  Jump to top of page