Fix buttons

This commit is contained in:
Julian 2024-07-21 20:57:24 +02:00
parent 6db74c2242
commit 555a114ae5
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,9 @@
/* USER CODE BEGIN TouchGFXHAL.cpp */ /* USER CODE BEGIN TouchGFXHAL.cpp */
#include "STWButtonController.hpp"
STWButtonController stwBC;
using namespace touchgfx; using namespace touchgfx;
void TouchGFXHAL::initialize() void TouchGFXHAL::initialize()
@ -35,6 +38,7 @@ void TouchGFXHAL::initialize()
// Please note, HAL::initialize() must be called to initialize the framework. // Please note, HAL::initialize() must be called to initialize the framework.
TouchGFXGeneratedHAL::initialize(); TouchGFXGeneratedHAL::initialize();
setButtonController(&stwBC);
} }
/** /**