2020-10-29 08:27 AM
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!
2020-10-30 02:59 AM
Hi, can you record a video of this?
/Martin