2019-11-29 11:16 AM
Also adding these includes it is impossible to modify text in the screen or select a button from the main.cpp - main() - while(1) { }
/* USER CODE BEGIN Includes */
#include <stm32746g_discovery_qspi.h>
#include <gui/screen1_screen/Screen1View.hpp>
#include <gui_generated/screen1_screen/Screen1ViewBase.hpp>
/* USER CODE END Includes */
/* Start scheduler */
osKernelStart();
/* We should never get here as control is now taken by the scheduler */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
Screen1View().setIRBuffer("pippo"); <<<<< NEVER GO HERE !!!
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
2019-11-29 12:49 PM
Add the code in Screen1View.cpp where thare are the other touch events like Screen1View::buttonUpClicked().
void Screen1View::handleTickEvent()
{
if (key == 1) // received event from HW like infrared receiver
{
touchgfx::Unicode::snprintf(IRBuffer, IR_SIZE, "Test IR");
IR.setWildcard(IRBuffer);
IR.resizeToCurrentText();
IR.invalidate();
key = 0;
}
}