Skip to main content
justin11
Senior
March 2, 2023
Question

In TouchGFX is there a way to dynamically enable and disable the touch sensor from a hardware button ?

  • March 2, 2023
  • 4 replies
  • 1048 views

..

This topic has been closed for replies.

4 replies

MM..1
Chief III
March 2, 2023

Yes in your target touch code

justin11
justin11Author
Senior
March 2, 2023

would you mind exapnding on this comment ?

MM..1
Chief III
March 2, 2023

In target folder STM32TouchController.cpp

justin11
justin11Author
Senior
March 2, 2023

Thanks, i've modified

bool STM32TouchController::sampleTouch ( int32_t& x, int32_t& y )

to return false when i've disabled it.