fonts.h and fonts.c example for the library

This commit is contained in:
Anton Mukhin
2025-07-14 17:31:11 +03:00
parent ec9fbc4250
commit a7d052e799
2 changed files with 312 additions and 0 deletions

27
STM32_HAL_Lib/fonts.h Normal file
View File

@@ -0,0 +1,27 @@
/*
ST7565 LCD Font library
Anton Mukhin, 2023
*/
#ifndef INC_FONTS_H_
#define INC_FONTS_H_
#include <stdint.h>
#define FONT_HEADER 6
/* Font header map:
uint8_t packed; // Is it a packed font?
uint8_t width; // Font width in pixels
uint8_t height; // Font height in pixels
uint8_t space; // Space between characters
uint8_t first; // First character code
uint8_t last; // Last character code
*/
extern const uint8_t font_5x7_vw[];
#endif /* INC_FONTS_H_ */