LTDC_Layer_InitStruct.LTDC_HorizontalStart = HBP+1;//30; 43
LTDC_Layer_InitStruct.LTDC_HorizontalStop = (640 + HBP );
LTDC_Layer_InitStruct.LTDC_VerticalStart = VBP+1;//4;
LTDC_Layer_InitStruct.LTDC_VerticalStop = (360 + VBP );
LTDC_Layer_InitStruct.LTDC_PixelFormat = LTDC_Pixelformat_RGB565;
LTDC_Layer_InitStruct.LTDC_ConstantAlpha = 255;
LTDC_Layer_InitStruct.LTDC_BlendingFactor_1 = LTDC_BlendingFactor1_CA;
LTDC_Layer_InitStruct.LTDC_BlendingFactor_2 = LTDC_BlendingFactor2_CA;
//-- Default Color configuration (configure A,R,G,B component values) --//
LTDC_Layer_InitStruct.LTDC_DefaultColorBlue = 0x0000ff;
LTDC_Layer_InitStruct.LTDC_DefaultColorGreen = 0;
LTDC_Layer_InitStruct.LTDC_DefaultColorRed = 0;
LTDC_Layer_InitStruct.LTDC_DefaultColorAlpha = 0;
//-- Input Address configuration --// //-- Configure blending factors --//
// LTDC_Layer_InitStruct.LTDC_CFBStartAdress = (uint32_t)&RGB565_240x320;
LTDC_Layer_InitStruct.LTDC_CFBLineLength = ((1280 * 2) + 3); //240
LTDC_Layer_InitStruct.LTDC_CFBPitch = (1280 * 2); //240x2
LTDC_Layer_InitStruct.LTDC_CFBLineNumber = 800;//320 272
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>