Fonts work (mostly)

This commit is contained in:
Dylan Smith
2026-01-09 13:31:10 -05:00
parent caee1f3778
commit 2624b59564
9 changed files with 1558 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
#include "display.h"
#include "stm32f4xx_hal_ltdc.h"
__attribute__((section(".sdram")))
volatile rgb565_pixel_t framebuffer[DISPLAY_HEIGHT * DISPLAY_WIDTH];
__attribute__((section(".sdram")))
volatile uint32_t times_changed;
void DisplayTest(uint16_t color)
{
times_changed++;
for (uint16_t h = 0; h < DISPLAY_HEIGHT; h++)
{
for (uint16_t w = 0; w < DISPLAY_WIDTH; w++)
{
framebuffer[(h * DISPLAY_WIDTH) + w] = color;
}
}
}