Solved
Touchgfx and HAL_GPIO_WritePin in simulator
This piece of code works if I transfer it to my board, but if I use the simulator in TouchGFX, I get an error: gui/src/model/Model.cpp:7:10: fatal error: main.h: No such file or directory #include "main.h".
Screen1View.cpp
#include "stm32f7xx_hal.h"
// LED Toggle function
void Screen1View::ToggleLED()
{
if (toggleButton1.getState()) HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, GPIO_PIN_SET);
else HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, GPIO_PIN_RESET);
}
I am using TouchGFX 4.24
BR
