zwischen speicher

This commit is contained in:
2025-04-22 18:54:45 +02:00
parent cace5823ac
commit b539afecce
6 changed files with 643 additions and 573 deletions

View File

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