Skip to main content
Emark.11
Visitor II
April 5, 2021
Question

Is it possible to drive TouchGFX App without pressing any button?

  • April 5, 2021
  • 2 replies
  • 1015 views

I have developed a device able to measure acceleration, so I essentialy have a GUI with a "start", "stop" buttons and also a text buffer showing the result of the last measurement.

When I press the start button, a measurment starts and it keeps going untill I press the stop button.

However, I would now like to make repeated measurements as follows, without having to touch the screen myself:

Press Start button 

for (i = 1, i < 31, i++) // Repeat 30 times

{

if ( collected_samples >= some_value )

Press Stop button

else 

Keep collecting samples

}

I tried calling the EndCallback functions from main.c and altough I was succesful in stopping the measurement, the GUI Freezes (No HardFault or anyting like that). The GUI simply becomes irresponsive.

Therefore, I was wondering if there is another way of interacting with the GUI without actually touching the display. For example, maybe each button is linked to a boolean value or some other variable that I can alter from the code (in order to simulate an interaction with the GUI)

_________________________________________

The brooks brothers trailers

This topic has been closed for replies.

2 replies

Piranha
Principal III
April 5, 2021
richieadam
Visitor II
July 19, 2022

I tried calling the EndCallback functions from main.c and altough I was succesful in stopping the measurement, the GUI Freezes (No HardFault or anyting like that). The GUI simply becomes irresponsive.

Therefore, I was wondering if there is another way of interacting with the GUI without actually touching the display. For example, maybe each button is linked to a boolean value or some other variable that I can alter from the code (in order to simulate an interaction with the GUI.

Ornament Central