2020-01-13 02:07 AM
Hello,
Does anyone managed to connect GT911 Touch Controller on STM32F746 Discovery or similar board;
The demo project for STM32F746 [with TouchGFX] is using the FT5536.
2020-01-13 02:11 AM
Are you looking for board design or code?
/Martin
2020-01-13 02:26 AM
Hello Martin,
We already made a custom board based on the Discovery schematics. I am talking about the firmware implementation
2020-01-13 02:45 AM
Let me look around. I'm pretty sure we've written a TouchGFX driver for it at some point - if this is what you mean by firmware.
/Martin
2020-01-13 03:50 AM
Yeah Martin, that's what i mean by 'firmware' term :)
2020-01-20 02:56 AM
I haven't managed to find it yet. I can help you with some tips for implementing it if you want - Do you have any low level driver code for the GT911? The TouchGFX interface is super easy.
/Martin
2020-01-20 03:01 AM
static Finger finger;
bool touchgfx::ST1232TouchController::sampleTouch(int32_t& x, int32_t& y)
{
if (touchDetected())
{
//Get sample for finger 1 and extract data
if (getSample(&finger))
{
x = finger.x;
y = finger.y;
return true;
}
}
return false;
}
The methods to implement here are the following. Only X and Y are supported by TouchGFX and it evaluates on these, over time, internally and offers "gestures" that way. No multi-touch gesture abstraction layer is provided by TouchGFX.
* touchDetected()
* getSample()
2020-01-20 03:44 AM
The same display (same Touch controller) has been successfully used on a linux-based embedded device, so either i'm gonna try to use same .c/.h files or i'm gonna use the driver from Waveshare (https://www.waveshare.com/wiki/File:7inch-Capacitive-Touch-LCD-G-Demo.7z)
2020-01-20 03:54 AM
Okay, let me know how you do and if you need help. It should be pretty straight forward.
Something to consider is that sampleTouch() is a part of your overall render time for a frame, so if you're busy waiting somewhere in your driver code that can be an issue. Sometimes we'll make it interrupt based using a different Touch task and then the GUI Task ( sampleTouch() ) will read those values directly.
/Martin
2020-01-20 05:55 AM
Oh, another forum member has upload some functions for GT911 Touch driver.
https://community.st.com/s/question/0D50X0000B5H5ufSQC/display-rk043fn66hsctg-from-rocktech
I'm gonna import them on my project, at least is a start.