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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-09-20 10:09 PM
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);
}
Labels:
- Labels:
-
LCD-LTDC
-
STM32F4 Series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-09-21 2:52 AM
> 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
