2020-08-05 09:18 AM
I'm not able to implement in the right way following this guide.
https://support.touchgfx.com/docs/development/board-bring-up/example-gpio/
Thank you
2020-08-06 01:21 AM
Hi,
In the backend communication article in the documentation you can download projects on different boards using external buttons.
/Romain
2020-08-06 01:39 AM
Thank you very much
2020-08-06 01:54 AM
Add next key ...
if (HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_13) != GPIO_PIN_RESET)
{
key = 1;
return true;
}
if (HAL_GPIO_ReadPin(GPIOXX, GPIO_PIN_XX) != GPIO_PIN_RESET)
{
key = 2;
return true;
}
and to project
"PhysicalButtons": [
{
"Key": 1,
"Name": "BTN_USER"
},
{
"Key": 2,
"Name": "BTN_USERXX"
}
],
...
2020-08-06 02:02 AM
Too you can aliasing gpio to keyboard keys ... and simply in model tick use
if (HAL_GPIO_ReadPin(SW_PWR_GPIO_Port, SW_PWR_Pin) == GPIO_PIN_RESET && filter == false )
{
filter = true;
static_cast<FrontendApplication*>(Application::getInstance())->handleKeyEvent(85);
}
85 is defined as key "U" in trigger designer...
2020-08-06 05:38 AM
Thank you everyone.
i solved my issue