Skip to main content
Tuoman
Senior II
November 5, 2020
Solved

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

  • November 5, 2020
  • 3 replies
  • 1107 views

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.

This topic has been closed for replies.
Best answer by Alexandre RENOUX

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

3 replies

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
November 9, 2020

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

Tuoman
TuomanAuthor
Senior II
November 9, 2020

Oh, ok. Thanks!

Is the NoTouchController deprecated class then?

Alexandre RENOUX
Visitor II
November 9, 2020

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