cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX does not give option to disable touch controller in target/generated/TouchGFXConfiguration.cpp

Tuoman
Senior II

I want to disable touch using NoTouchController class, but the TouchGFXConfiguration.cpp file is located in generated folder, but STM32CubeMX will always override this change.

CubeMX should have option to select TouchController.

1 ACCEPTED SOLUTION

Accepted Solutions
Alexandre RENOUX
Principal

Hello,

Indeed it does not but it should not impact your project at all. Since in the TouchController class the sample() function returns always false, TouchGFX does not take care of the TouchController.

When your question is answered, please close this topic by choosing Select as Best.

/Alexandre

View solution in original post

3 REPLIES 3
Alexandre RENOUX
Principal

Hello,

Indeed it does not but it should not impact your project at all. Since in the TouchController class the sample() function returns always false, TouchGFX does not take care of the TouchController.

When your question is answered, please close this topic by choosing Select as Best.

/Alexandre

Oh, ok. Thanks!

Is the NoTouchController deprecated class then?

I don't think so since the API page in the documentation website does not say so.

However, it is not used. You can see it if you look at the Application Template for G071-Nucleo available in TouchGFX Designer. In this kit, the display does not have a TouchController but it's still the TouchController class that is used :)

/Alexandre