zwischenspeicher

This commit is contained in:
2025-04-23 18:59:20 +02:00
parent b539afecce
commit a0af1bb277
5 changed files with 77 additions and 77 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 = 0x0f, g = 0x0f, b = 0x0f;
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++)
@ -364,9 +364,9 @@ static void MX_LTDC_Init(void)
hltdc.Init.AccumulatedActiveH = 607;
hltdc.Init.TotalWidth = 1333;
hltdc.Init.TotalHeigh = 609;
hltdc.Init.Backcolor.Blue = 255;
hltdc.Init.Backcolor.Green = 255;
hltdc.Init.Backcolor.Red = 255;
hltdc.Init.Backcolor.Blue = 15;
hltdc.Init.Backcolor.Green = 15;
hltdc.Init.Backcolor.Red = 15;
if (HAL_LTDC_Init(&hltdc) != HAL_OK)
{
Error_Handler();

View File

@ -307,7 +307,7 @@ void HAL_LTDC_MspInit(LTDC_HandleTypeDef* hltdc)
*/
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
PeriphClkInitStruct.PLL3.PLL3M = 2;
PeriphClkInitStruct.PLL3.PLL3N = 20;
PeriphClkInitStruct.PLL3.PLL3N = 25;
PeriphClkInitStruct.PLL3.PLL3P = 2;
PeriphClkInitStruct.PLL3.PLL3Q = 4;
PeriphClkInitStruct.PLL3.PLL3R = 2;