Skip to main content
LACTIC
Associate III
May 13, 2019
Question

Print a string on TFT Display.

  • May 13, 2019
  • 1 reply
  • 1479 views

I am using STM32F429ZI Nucleo Bord by using LTDC . I have already print a image on that by using this system peripheral but when I am going to print string on that it not print on screen. Please help .

my written code :--

 BSP_LCD_Init();

 BSP_LCD_LayerDefaultInit(LCD_BACKGROUND_LAYER,LCD_FRAME_BUFFER);

 BSP_LCD_SelectLayer(LCD_BACKGROUND_LAYER);

 BSP_LCD_Clear(LCD_COLOR_WHITE);

 //BSP_LCD_SetTextColor(LCD_COLOR_BLACK);

 BSP_LCD_DisplayStringAtLine(1,(uint8_t*)"hi");

 BSP_LCD_DisplayStringAtLine(5,(uint8_t*)"HELLO");

These API are in attached ".c and .h" file

This topic has been closed for replies.

1 reply

LACTIC
LACTICAuthor
Associate III
May 13, 2019

I am using inbuilt sram which start from 0x20000000 and lcd size is 320*240 and according to calculation required frame buffer size =2*( (320*240*2)/1024) { for 16bit } that is 300 (k byte).