2019-07-22 04:41 AM
Hello,
I use STM32F429 Discovery board, which has touch controller,
but in my project I don't need it, so I want to turn it off.
In BoardConfiguration.cpp I found this initialization:
STM32F4TouchController tc;
HAL& hal = touchgfx_generic_init<STM32F4HAL>(dma, display, tc, dispWidth, dispHeight,(uint16_t*) 0, 0, 0);
And description of touchgfx_generic_init function says:
@param [in] tc Reference to the touch controller driver (or NoTouchController to disable touch input).
How to turn Touch controller off?
Should I change "tc" in touchgfx_generic_init for NoTouchController or what?
Thank you,
Anton
Solved! Go to Solution.
2019-07-22 05:43 AM
Hi @qqAnton,
Yes, you should change the tc object to a NoTouchController.
/Anders
2019-07-22 05:43 AM
Hi @qqAnton,
Yes, you should change the tc object to a NoTouchController.
/Anders
2019-07-22 10:19 PM
@Anders Nedergaard PETERSEN do you mean this?
STM32F4TouchController NoTouchController;
HAL& hal = touchgfx_generic_init<STM32F4HAL>(dma, display, NoTouchController, dispWidth, dispHeight,(uint16_t*) 0, 0, 0);
2019-07-22 11:39 PM
No, changing the type for tc to a NoTouchController, like so:
NoTouchController tc;
HAL& hal = touchgfx_generic_init<STM32F4HAL>(dma, display, tc, dispWidth, dispHeight,(uint16_t*) 0, 0, 0);
/Anders
2019-07-23 02:34 AM
@Anders Nedergaard PETERSEN what should I include to use NoTouchController?
Because I get error
Error[Pe020]: identifier "NoTouchController" is undefined
2019-07-23 03:00 AM
Please add the following include
#include <platform/driver/touch/NoTouchController.hpp>
That should do the trick
2019-07-23 11:40 PM
Thank you, now it works!
2023-04-16 08:19 PM
Hi @qqAnton @Anders Nedergaard PETERSEN
I can't find the file "BoardConfiguration.cpp"in my project. Where it should be located ?
Thank you