Skip to content

Commit

Permalink
add:u8g2 demo无中文时加个提示log
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Mar 24, 2023
1 parent 59978db commit e063613
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo/u8g2/main.lua
Expand Up @@ -68,6 +68,8 @@ if u8g2.font_opposansm12_chinese then
u8g2.SetFont(u8g2.font_opposansm12_chinese)
elseif u8g2.font_opposansm10_chinese then
u8g2.SetFont(u8g2.font_opposansm10_chinese)
else
print("no chinese font")
end

u8g2.DrawUTF8("中文测试", 40, 38) -- 若中文不显示或乱码,代表所刷固件不带这个字号的字体数据, 可自行云编译一份. wiki.luatos.com 有文档.
Expand Down

0 comments on commit e063613

Please sign in to comment.