u8g2汉字速查表
Posted perseverance52
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了u8g2汉字速查表相关的知识,希望对你有一定的参考价值。
u8g2汉字速查表
u8g2汉字速查表
只针对u8glib库中的汉字字体:
- u8g2_font_unifont_t_chinese1
- u8g2_font_unifont_t_chinese2
- u8g2_font_unifont_t_chinese3
U8g2库GitHub下载地址
使用u8g2lib.h库,直接中文显示的示例程序
void setup(void) {
u8g2.begin();
u8g2.enableUTF8Print(); // enable UTF8 support for the Arduino print() function使用oled中文打印显示必须启用这个。
}
void loop(void) {
u8g2.setFont(u8g2_font_unifont_t_chinese2); // use chinese2 for all the glyphs of "你好世界"
//u8g2.setFont(u8g2_font_b10_t_japanese1); // all the glyphs of "こんにちは世界" are already included in japanese1: Lerning Level 1-6
u8g2.setFontDirection(0);
u8g2.firstPage();
do {
u8g2.setCursor(0, 15);
u8g2.print("Hello World!");
u8g2.setCursor(0, 40);
u8g2.print("你好世界"); // Chinese "Hello World"
//u8g2.print("こんにちは世界"); // Japanese "Hello World"
} while ( u8g2.nextPage() );
delay(1000);
}
源文档存在金山文档:
https://www.kdocs.cn/l/cdZZBmgxS9vX
[金山文档] U8g2汉字Unicode码对照表.xlsx
- 以下是全部截图下来的,为了方便直接查阅
百度网盘链接
链接:https://pan.baidu.com/s/1brMNy_shz5m9TUxD0bzr2g
提取码:u2kv
以下是Chinese3的字体,1和2的没有了
以上是关于u8g2汉字速查表的主要内容,如果未能解决你的问题,请参考以下文章
14张Python代码速查表,玩转数据分析&可视化&机器学习