Upgrading TouchGFX engine and external buttons
This is an outstanding issue that's been there for a while but since it just got me again, I'm finally taking the time to post about it. When using external buttons and the button controller, the implementation instructions have you edit the ToughGFXConfiguration.cpp file to add the custom button controller instance and pass that instance in the touchgfx_init() function. That whole file is flagged as
* This file is generated by TouchGFX Generator x.x.x. Please, do not edit!
But, you need to edit it to use the button controller. So, when you do the upgrade of the TouchGFX engine in CubeIDE, this file must get re-generated since it overwrites my edits which then I have to rely on memory to go fix.
It would be great if we could add USER CODE BEGIN and USE CODE END sections that Cube uses elsewhere. Or implement virtual or weak functions we can override so this can be implemented without editing a generated file.
Thanks,
Keith
