2025-05-26 18:48:47 +08:00

41 lines
1.0 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __OLED_DATA_H
#define __OLED_DATA_H
#include <stdint.h>
/*中文字符字节宽度*/
#define OLED_CHN_CHAR_WIDTH 3 //UTF-8编码格式给3GB2312编码格式给2
/*字模基本单元*/
typedef struct
{
uint8_t Data[32]; //字模数据
char Index[OLED_CHN_CHAR_WIDTH + 1]; //汉字索引
} ChineseCell_t;
/*ASCII字模数据声明*/
extern const uint8_t OLED_F8x16[][16];
extern const uint8_t OLED_F6x8[][6];
/*汉字字模数据声明*/
extern const ChineseCell_t OLED_CF16x16[];
extern const ChineseCell_t OLED_CF12x12[];
extern const ChineseCell_t OLED_CF10x10[];
extern const ChineseCell_t OLED_CF8x8[];
/*图像数据声明*/
extern const uint8_t Diode[];
/*按照上面的格式,在这个位置加入新的图像数据声明*/
extern const uint8_t Cursor[];
extern const uint8_t goutou[];
extern const uint8_t Wallpaper[];
extern const uint8_t XpWallpaper[];
extern const uint8_t Win11Wallpaper[];
//...
#endif
/*****************江协科技|版权所有****************/
/*****************jiangxiekeji.com*****************/