cancel
Showing results for 
Search instead for 
Did you mean: 

change from screen1 to screen2 or from Screen2 to Screen1 on touchgfx

Nhor.1
Associate II

hello.

It is programmed to move from screen 1 to screen 2 with Button.

I would like to know how to move using gpio input.

thank you.

1 REPLY 1
MM..1
Chief II

Create interactions on both screen assign to hardware button (if you use letters in simulator you can test with pc keyboard) For example from code roller choice 85 letter U

in model.cpp tick place hw gpio check

if (HAL_GPIO_ReadPin(SW_PWR_GPIO_Port, SW_PWR_Pin) == GPIO_PIN_RESET )
 {
	   static_cast<FrontendApplication*>(Application::getInstance())->handleKeyEvent(85);
 }