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,28 @@
#ifndef DISPLAY_H
#define DISPLAY_H
#include "main.h"
#define DISPLAY_WIDTH 240
#define DISPLAY_HEIGHT 320
typedef uint16_t rgb565_pixel_t;
#define PIXEL_RED(p) (((p) >> 11) & 0x1F)
#define PIXEL_GREEN(p) (((p) >> 5) & 0x3F)
#define PIXEL_BLUE(p) ((p) & 0x1F)
#define MAKE_PIXEL(r,g,b) \
(((r & 0x1F) << 11) | ((g & 0x3F) << 5) | (b & 0x1F))
extern volatile rgb565_pixel_t framebuffer[DISPLAY_HEIGHT * DISPLAY_WIDTH];
extern volatile uint32_t times_changed;
void DisplayTest(uint16_t color);
#endif