cancel
Showing results for 
Search instead for 
Did you mean: 

I want to adjust the LCD touch sensitivity of the discovery board.

mSH.1
Associate III

hello

I want to adjust the LCD touch sensitivity of STM32H735G-DK provided by TouchGFX.

0693W00000Nrg7bQAB.png

I'm analyzing stm32h735g_discovery_ts.c and I'm not sure.

Where to fix LCD touch sensitivity...

Can you tell me a guide or where to fix it?

thak.​

4 REPLIES 4
Osman SOYKURT
ST Employee

Hello mSH.1,

This isn't something related to TouchGFX Designer actually, it depends more on your screen capabilities & drivers. So the short answer would be no.

But if you explain a bit more about what you want to do, I can maybe help you to find an alternative to that 🙂

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX

hello Oskt

I want to test the touch sensitivity of the discovery board's LCD.

For example, making the touch sensitivity of LCD sensitive... or insensitive...

I thought that maybe it would be possible to modify the SW driver of the touch controller, and I did an analysis, but I don't know yet.

I am using the STM32H735g-dk Discovery board.

I created a project with TouchGFX and confirmed that ft5336 was used in the BSP folder.

I analyzed the ft5336.C file to see if there might be a part to modify the sensitivity, but in fact, I still don't know.

How do I set the touch sensitivity?

Hello mSH.1,

Indeed this file is used. I found something interesting in this struct :

typedef struct
{
  uint32_t  TouchDetected;
  uint32_t  TouchX[FT5336_MAX_NB_TOUCH];
  uint32_t  TouchY[FT5336_MAX_NB_TOUCH];
  uint32_t  TouchWeight[FT5336_MAX_NB_TOUCH];
  uint32_t  TouchEvent[FT5336_MAX_NB_TOUCH];
  uint32_t  TouchArea[FT5336_MAX_NB_TOUCH];
} FT5336_MultiTouch_State_t;

Maybe you could use the TouchWeight element; this function in particular might help you :

int32_t ft5336_p1_weight(ft5336_ctx_t *ctx, uint8_t *value);

I think it's possible to get this value, and then you can compare it to other values to test your screen sensitivity. But I've never really worked with this so I'm not 100% sure, sorry 😅

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
mSH.1
Associate III

Hello Oskt

I'll try what you said and post the results.

tnank.