No more complex process to create u8g2 unifont codes! Just enter the characters needed and click submit! That's it!
#include <u8g2lib.h>
#include "u8g2_font_03a5abada53e6bdb8f833c3bd17a69e3.h"
u8g2.setFont(u8g2_font_unifont_myfonts);
//溫度溼度亮度感度 //显示屏选择麦风总 //何千もの山と鳥が飛び去り、 //마법같은경험이라고표현했 #include <Arduino.h> #include <u8g2lib.h> /// After copy, remember to update this line!! /// Copy 之後, 別忘了更新這行, 要和上面產生的檔名一樣!! #include "u8g2_font_unifont_myfonts.h" #ifdef U8X8_HAVE_HW_SPI #include <SPI.h> #endif #ifdef U8X8_HAVE_HW_I2C #include <Wire.h> #endif U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/U8X8_PIN_NONE); // OLED TEXT ROW number, vertical position const byte ROW[5] = {0, 15, 31, 47, 63}; void setup(void) { Serial.begin(115200); u8g2.begin(); u8g2.enableUTF8Print(); Serial.println("u8g2 started"); } void loop(void) { // font list: https://github.com/olikraus/u8g2/wiki/fntlist16 u8g2.setFont(u8g2_font_unifont_myfonts); //u8g2.setFont(u8g2_font_unifont_t_chinese3); u8g2.clearBuffer(); u8g2.setCursor(0, ROW[1]); u8g2.print("溫度溼度亮度感度"); u8g2.setCursor(0, ROW[2]); u8g2.print("显示屏选择麦风总"); u8g2.setCursor(0, ROW[3]); u8g2.print("何千もの山と鳥が飛び去り、"); u8g2.setCursor(0, ROW[4]); u8g2.print("마법같은경험이라고표현했"); u8g2.sendBuffer(); delay(10000); }
為了使用 0.96” OLED SD1306 顯示器, 研究了一下 U8G2 的字型程式庫的使用方法. 記錄一下使用方式, 也和大家一起來分享. 影片中14:34也介紹了如何安裝及使用益師傅做的5000+繁中字型.
For 0.96" OLED SD1306 display, I studied the u8g2 library and made this video to share with you on how to use u8g2 library with monochrome display.
這個影片適合想要學習如何在SD 1336 LED上面畫出圖案的朋友觀看&學習.
(中文字幕 CC is available! for other languages,
pease use YouTube auto-translate)