CLUT and emWin

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

  • CLUT and emWin

    I am using STM32F4 which has a CLUT hardware, and so it is possible to use 8 bit for 256 different colors in the look up table.
    this is a real memory saver, and also will speed up loading of image from memory.
    Does emWin support this hardware? how to use?

    Thanks
    Johanan
  • Hello Johanan,

    Yes, of course. (C)LUT functionality is supported by the emWin display driver GUIDRV_Lin which can be used for the STM32F4 LTDC.

    In order to set the hardware LUT entries the emWin API functions listed in the section 14.6.1 "Look-up table API" can be used.
    Those functions cause the emWin display driver to send the command LCD_X_SETLUTENTRY to the display driver callback function
    LCD_X_DisplayDriver() (LCDConf.c). You will have to implement the according reaction to this command. Details on how to do this
    can be found in the section 32.6 "Display driver callback function" in the emWin user manual.

    Please note that using a LUT will require emWin to be configured for a proper color mode. For detailed information about the
    different color modes, please refer to the section 14.4 "Detailed fixed palette mode description".

    Best regards,
    Thorsten