cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G-DISCO, TouchGFX, STM32CubeIDE, FreeRTOS, engine control

AD�?b
Senior

Hi!

I have to start / stop the engine with one button. How to set the button in TouchGFX? What program to add in View, Presenter and Model?

Andrzej

15 REPLIES 15

As I understand , I think you need to set some sort of flag for you application..

I have two engines. One turns right, the other left.

I have two screens. One for parameter setting (ScreenSet) and the other for control (ScreenWork).

Switching from ScreenWork cannot be done with engines running.

In roller.touchgfx which I sent packed, I set what I could do and work properly.

However, this is not all. During operation, OFF / ON and UP can be pressed simultaneously. The screen (BACK) cannot be switched. I don't know how to do it. I tried in different ways but it turns out.

Did you try looking into creating your own button?

All buttons are "Flex Button". When one button is pressed "Execute C ++ code" allows blocking the page switching (BACK). As there are two buttons enabled at the same time, I can't get the page switching lock (BACK). Is this possible in TouchGFX Designer? pon., 18 maj 2020 o 09:42 ST Community napisał(a):

All buttons are "Flex Button". When one button is pressed "Execute C ++ code" allows blocking the page switching (BACK). As there are two buttons enabled at the same time, I can't get the page switching lock (BACK). Is this possible in TouchGFX Designer?

Hi Martin!

The construction of the ScreenWorkViewBase if () {} elseif () {} .... prevents the setting of buttons as I wanted. I have to organize it differently. Therefore, I have a question how to make selected "toggle" buttons after switching to another page (NEXT button) be reset?

Andrzej