zwischen speicher
This commit is contained in:
@ -119,7 +119,7 @@ int main(void)
|
||||
MX_LTDC_Init();
|
||||
MX_CRC_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
uint8_t r = 0xff, g = 0x00, b = 0xff;
|
||||
uint8_t r = 0xff, g = 0x00, b = 0xff;
|
||||
uint16_t col = ((r>>3)<<11) | ((g>>2)<<5) | (b>>3); // Convert colors to RGB565
|
||||
// Put colors into the framebuffer
|
||||
for(int i = 0; i < 1024*600; i++)
|
||||
@ -375,7 +375,7 @@ static void MX_LTDC_Init(void)
|
||||
pLayerCfg.WindowX1 = 1024;
|
||||
pLayerCfg.WindowY0 = 0;
|
||||
pLayerCfg.WindowY1 = 600;
|
||||
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
|
||||
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB888;
|
||||
pLayerCfg.Alpha = 1;
|
||||
pLayerCfg.Alpha0 = 0;
|
||||
pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_CA;
|
||||
|
||||
Reference in New Issue
Block a user