cancel
Showing results for 
Search instead for 
Did you mean: 

Text Area flicker

MMoln.1
Associate

Hello,

I'm using an STM32F7508-DK, with a project generated by TouchGFX Designer 4.15. I have a Graph and a Text Area on screen with a wildcard that gets updated from Model::Tick() every frame, so this is my code:

Model.cpp:

void Model::tick()
{
		modelListener->flowUpdate(20);
}

Added this virtual function to ModelListener.hpp

virtual void flowUpdate(int16_t flow) {}

And to FlowPresenter.hpp, FlowView.hpp

virtual void flowUpdate(int16_t flow);

FlowPresenter.cpp

void FlowPresenter::flowUpdate(int16_t flow)
{
	view.flowUpdate(flow);
}

FlowView.cpp

void FlowView::flowUpdate(int16_t flow)
{
	memset(&FlowValueBuffer, 0, FLOWVALUE_SIZE);
	Unicode::snprintf(FlowValueBuffer, FLOWVALUE_SIZE, "%d", flow);
	FlowGraph.addDataPoint( (float)flow );
	FlowValue.invalidate();
}

Everything else is the stock generated code.

Now the interesting bit is not the flicker itself, but that it immediately stops when I touch the screen anywhere, and does not come back until I lift my finger. It is also interesting that the graph never flickers (and of course runs smoothly in the background).

If anyone has any idea how I could deal with this, than please share. I can provide any other information if needed.

PS: I checked it is NOT a connection problem!

1 REPLY 1
Martin KJELDSEN
Chief III

Hi, can you record a video of this?

/Martin