fonts.h and fonts.c example for the library
This commit is contained in:
27
STM32_HAL_Lib/fonts.h
Normal file
27
STM32_HAL_Lib/fonts.h
Normal 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_ */
|
Reference in New Issue
Block a user