feat: initialize epd with custom slow-refresh

This commit is contained in:
fsender
2025-03-13 08:36:29 +08:00
parent 86e1022ffa
commit 25b9e62f5f
5 changed files with 24 additions and 14 deletions

View File

@@ -55,9 +55,9 @@
ReadguyDriver guy;//新建一个readguy对象, 用于显示驱动.
extern const uint8_t ctg_u8g2_wqy12_chinese1[]; //声明中文字体文件
extern const uint8_t ctg_u8g2_wqy12_gb2312[]; //声明中文字体文件
const lgfx::U8g2font cn_font(ctg_u8g2_wqy12_chinese1); //U8G2格式中文字体转化为LGFX格式字体
const lgfx::U8g2font cn_font(ctg_u8g2_wqy12_gb2312); //U8G2格式中文字体转化为LGFX格式字体
void setup(){
@@ -69,7 +69,7 @@ void setup(){
guy.setCursor(10,10);
guy.print("中文");
guy.print("你好, 中文");
guy.display();
}