Slice callback function example to avoid flickering since memory device and copytolcd function is consuming more execution time

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Slice callback function example to avoid flickering since memory device and copytolcd function is consuming more execution time

      Can you please explain slice call back function with an example to avoid flickering since in my application after creating memory device and using GUI_MEMDEV_CopyToLCD function
      (mainly to avoid flickering) to draw multiple text lines of font size "Aerial37_Bold", it is taking around 130ms execution time on 480*480 pixels display.
    • Hi,

      Which slice callback function are talking about?

      It is possible to set a animation callback function with GUI_MEMDEV_SetAnimationCallback(). But this is only for the memory device animation functions like GUI_MEMDEV_FadeInDevices(). But this will not reduce the drawing time.

      If you are using the GUIDRV_Lin driver you should use multibuffering to avoid flickering. With multibuffering you don't have to memory devices and the output will be drawn directly into the backbuffer.

      You might refer to the emWin user manual chapter 23 Multiple Buffering to get more information about this.

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.