Arduino #29 - How to use U8g2 library to show graphic & UTF8 characters for monochrome displays
Автор: Stonez56 (Kevin Chen)
Загружено: 2021-08-14
Просмотров: 17873
=== IMPORTANT NOTICE ===
Do you want to generate u8g2 UTF8 font for Arduino projects?
Try this online web tool I created @ https://stonez56.com/u8g2
Just 3 easy steps to get UTF8 Arduino codes for your projects!
Try it today!!
=== NOTICE ===
In order to use the newly purchased 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. In the video, I also included a section on how to use the free 5000+ traditional Chinese font created by Mr. Yang. The file is free for anyone to use. Really appreciated what he did for Arduino community!
For those who do not have time to watch the entire video , here is the video timeline.
Video Timeline:
00:00 Start
00:22 Install u8g2
01:04 Open PrintUTF8 example
02:00 Define display used
02:23 Explain display naming rules
04:13 Uncomment the line selected
04:33 Explain the code
04:42 enableUTF8Print() for symbol and Chinese
05:14 u8g2 supported font list
https://github.com/olikraus/u8g2/wiki...
06:23 display location setCursor(X,Y)
https://github.com/olikraus/u8g2/wiki...
07:05 Upload the sketch & show characters
07:23 Can't overwrite characters!
08:08 Char overwrite solution
08:37 OledOverlayPrint() function
09:06 Use OledOverlayPrint() in code
10:08 Use Open Iconic Fonts
11:29 Display cloud symbol
11:52 \u with number to show cloud
13:02 Change fonts for different lines
14:34 Download 5000+ Chinese font
15:11 Install 5000+Chinese font
15:39 Test missing fonts again
16:42 Reminder of memory usage
17:45 End of tutorial
References:
U8g2 library: https://github.com/olikraus/u8g2
U8g2 plain font: https://github.com/olikraus/u8g2/wiki...
U8g2 setCursor command: https://github.com/olikraus/u8g2/wiki...
U8g2 iconic font: https://github.com/olikraus/u8g2/wiki...
How to make your own font: https://blog.jmaker.com.tw/chinese_oled/
MQTT & IoT Integration FB group: / 3636001276437792
Please visit my blog for more Arduino Tutorials
https://stonez56.blogspot.com
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: