Display driver, .gitignore file
This commit is contained in:
34
firmware/Drivers/ST7789/fonts.h
Normal file
34
firmware/Drivers/ST7789/fonts.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef __FONT_H
|
||||
#define __FONT_H
|
||||
|
||||
#include "stdint.h"
|
||||
|
||||
typedef struct {
|
||||
const uint8_t width;
|
||||
uint8_t height;
|
||||
const uint16_t *data;
|
||||
} FontDef;
|
||||
|
||||
//Font lib.
|
||||
extern FontDef Font_7x10;
|
||||
extern FontDef Font_11x18;
|
||||
extern FontDef Font_16x26;
|
||||
|
||||
//16-bit(RGB565) Image lib.
|
||||
/*******************************************
|
||||
* CAUTION:
|
||||
* If the MCU onchip flash cannot
|
||||
* store such huge image data,please
|
||||
* do not use it.
|
||||
* These pics are for test purpose only.
|
||||
*******************************************/
|
||||
|
||||
/* 128x128 pixel RGB565 image */
|
||||
extern const uint16_t saber[][128];
|
||||
|
||||
/* 240x240 pixel RGB565 image
|
||||
extern const uint16_t knky[][240];
|
||||
extern const uint16_t tek[][240];
|
||||
extern const uint16_t adi1[][240];
|
||||
*/
|
||||
#endif
|
Reference in New Issue
Block a user