Skip to main content
LMI2
Senior III
May 25, 2017
Question

How to use BSP_LCD_DisplayChar() function?

  • May 25, 2017
  • 2 replies
  • 888 views
Posted on May 25, 2017 at 02:09

This function is in 746 Discovery template directory. I can't get anything to screen.

    This topic has been closed for replies.

    2 replies

    john doe
    Senior III
    May 25, 2017
    Posted on May 25, 2017 at 03:08

    How do you know it's not on the screen? Which layer are you drawing on? Which layer is visible? What is the transparency level? Are you drawing black letters on a black screen?

    I don't own this board so I have no first-hand knowledge of it.

    Alfonso Vizcaino
    Associate
    June 9, 2017
    Posted on June 09, 2017 at 06:14

    I had the same issue...I found the following link very useful

    https://github.com/gkostka/stm32f429disco-lwext4/blob/master/hw_init.c

     

    Note: I'm not the owner of such, but i found it while googling for a clue

    In general, you need to do these steps before drawing anything to the LCD:

    • call BSP_LCD_Init();
    • init a layer - BSP_LCD_LayerDefaultInit(1, LCD_FRAME_BUFFER_LAYER1);
    • use that layer - BSP_LCD_SelectLayer(1);
    • call BSP_LCD_DisplayOn();