cancel
Showing results for 
Search instead for 
Did you mean: 

How to use BSP_LCD_DisplayChar() function?

LMI2
Lead
Posted on May 25, 2017 at 02:09

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

2 REPLIES 2
john doe
Lead
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
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();