From 5e118e76394f8e735e8fd5292a89c14a9a7e99e7 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Wed, 7 Jan 2026 14:41:00 -0500 Subject: [PATCH] wip --- Core/Src/graphics.c | 2 ++ Core/Src/main.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Core/Src/graphics.c b/Core/Src/graphics.c index d0d7c29..e91abf3 100644 --- a/Core/Src/graphics.c +++ b/Core/Src/graphics.c @@ -1,4 +1,5 @@ #include "graphics.h" +#include "stm32f4xx_hal_ltdc.h" __attribute__((section(".sdram"))) volatile Pixel_t framebuffer[DISPLAY_HEIGHT * DISPLAY_WIDTH]; @@ -16,4 +17,5 @@ void DisplayTest(uint16_t color) framebuffer[(h * DISPLAY_WIDTH) + w] = color; } } + } \ No newline at end of file diff --git a/Core/Src/main.c b/Core/Src/main.c index a339d50..f9a1480 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -19,6 +19,7 @@ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "cmsis_os.h" +#include "stm32f4xx_hal_ltdc.h" #include "stm32f4xx_hal_sdram.h" #include "stm32f4xx_ll_fmc.h" #include "usb_host.h" @@ -700,8 +701,10 @@ void StartDefaultTask(void const * argument) for(;;) { DisplayTest(0xffff); + HAL_LTDC_Reload(&hltdc, LTDC_RELOAD_IMMEDIATE); osDelay(500); DisplayTest(0x0000); + HAL_LTDC_Reload(&hltdc, LTDC_RELOAD_IMMEDIATE); osDelay(500); } /* USER CODE END 5 */