Skip to main content
Jack li1
Associate III
July 2, 2020
Question

Some questions about the GFX framework

  • July 2, 2020
  • 8 replies
  • 1230 views

Hi @Martin KJELDSEN​ ,

I discovered something rather odd in GFX framework.I suddenly didn't give the GFX framework DSI_IRQHandler when I was using animation.If I restore the interrupt signal after a while,Model::tick() will disappear.The rest of the MCU functions are working, and the graphics frame is no longer refreshed farmbuffer.OSWrappers: : signalVSync () will be invoked, OSWrappers: : giveFrameBufferSemaphore () these will not be invoked.Should I do some protection when GFX loses the trigger signal?

Best regards

Jack li

This topic has been closed for replies.

8 replies

Martin KJELDSEN
Principal III
July 2, 2020

What does this mean? "I suddenly didn't give the GFX framework DSI_IRQHandler when I was using animation"

Note that the DSI interrupts help drive the framework forward. No OSWrappers::signalVSync() signal => no framebuffer update.

Jack li1
Jack li1Author
Associate III
July 2, 2020
		analogClock1.setAnimation(80, EasingEquations::cubicEaseInOut);
		analogClock1.setTime12Hour(hour, min,sec, true);

I use these two functions,the animation should be performed.I suddenly pressed the button to power off the screen to execute the following code.

void MainView::handleUpKeyShortEvent()
{
 if (ELX_LCD_On())																							
 {
 ELX_LCD_Off();
 }
}

OSWrappers::signalVSync() signal is invoked but no Model::tick() is sent

Jack li1
Jack li1Author
Associate III
July 2, 2020

OSWrappers::signalVSync() signals are called, but no model ::tick() is sent.This phenomenon occurs after the screen open