cancel
Showing results for 
Search instead for 
Did you mean: 

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.Thanks

nsabo.1
Associate II

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);

  

}

1 REPLY 1

> 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