Skip to main content
nsabo.1
Associate III
September 21, 2022
Question

Hello, I have initialized 2 layers on my stm32f429. I want to make the second layer which is an image with resolution 274*184 to be written line by line: here is my code ...Can you help me to do it? when I compile the code, it loads immediately.Than

  • September 21, 2022
  • 1 reply
  • 614 views

LTDC_InitTypeDef LTDC_InitStruct;

LTDC_Layer_InitTypeDef LTDC_Layer_InitStruct;

 Delay_us(2000000);

 LTDC_LayerCmd(LTDC_Layer2, ENABLE);

LTDC_ReloadConfig(LTDC_IMReload);

for(int i=0;i<=184;i++){

Delay_us(1000000);

LTDC_Layer_InitStruct.LTDC_CFBLineNumber   = i;

Delay_us(1000000);

  

}

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
September 21, 2022

> for(int i=0;i<=184;i++){

> Delay_us(1000000);

> LTDC_Layer_InitStruct.LTDC_CFBLineNumber   = i;

> Delay_us(1000000);

> }

Writing to init struct has no effect on the hardware.

JW