淄博高端网站建设乐达,芮城做网站的机构,网站源码破解版,成品网站货源1688免费推荐u8g2自带很多中文库#xff1b;但是向u8g2_font_wqy12_t_chinese3 比较全的应该是u8g2_font_wqy12_t_gb2312 这个#xff0c;只是我还没有调用成功 这个库#xff0c;中文就显示不全#xff1b;有些没有定义#xff0c;如百家姓 #include Arduino.h
#include …u8g2自带很多中文库但是向u8g2_font_wqy12_t_chinese3 比较全的应该是u8g2_font_wqy12_t_gb2312 这个只是我还没有调用成功 这个库中文就显示不全有些没有定义如百家姓 #include Arduino.h
#include U8g2lib.h
#include Wire.hU8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0,A5,A4, U8X8_PIN_NONE); // SDA:21 scl:22 void setup(void) {u8g2.begin();u8g2.enableUTF8Print(); // enable UTF8 support for the Arduino print() function
}void loop(void) {u8g2.setFont(u8g2_font_wqy12_t_chinese3); // use wqy chinese2 for all the glyphs of 你好世界u8g2.setFontDirection(0);u8g2.clearBuffer();u8g2.setCursor(10, 40);u8g2.print(你好世界王肇中); // Chinese Hello World u8g2.sendBuffer();delay(1000);
}