All Projects → simple51 → S51_UTF_8_FontLibrary

simple51 / S51_UTF_8_FontLibrary

Licence: Apache-2.0 license
UTF-8 font dot matrix data is saved through external FLASH

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to S51 UTF 8 FontLibrary

Transliteration
UTF-8 to ASCII transliteration / slugify module for node.js, browser, Web Worker, React Native, Electron and CLI.
Stars: ✭ 444 (+1380%)
Mutual labels:  utf-8, character
ocreval
Update of the ISRI Analytic Tools for OCR Evaluation with UTF-8 support
Stars: ✭ 48 (+60%)
Mutual labels:  utf-8
ShellAnything
ShellAnything is a C++ open-source software which allow one to easily customize and add new options to *Windows Explorer* context menu. Define specific actions when a user right-click on a file or a directory.
Stars: ✭ 103 (+243.33%)
Mutual labels:  utf-8
toolchain
A cmake based toolchain with support for diffrent micrcocontrollers.
Stars: ✭ 16 (-46.67%)
Mutual labels:  flash
J2N
Java-like Components for .NET
Stars: ✭ 37 (+23.33%)
Mutual labels:  character
use-color-change
📈📉React hook for flashing a text when a value becomes higher or lower
Stars: ✭ 32 (+6.67%)
Mutual labels:  flash
Ailight
AiLight is a custom firmware for the esp8266 based Ai-Thinker (or equivalent) RGBW WiFi light bulbs
Stars: ✭ 248 (+726.67%)
Mutual labels:  flash
Characters of the Three Kingdoms
3️⃣ Characters of the Three Kingdoms - 三国人物结构化数据
Stars: ✭ 100 (+233.33%)
Mutual labels:  character
lvg
Lion Vector Graphics
Stars: ✭ 106 (+253.33%)
Mutual labels:  flash
libasm
C++ library of assembler / disassembler that can run on embedded system
Stars: ✭ 23 (-23.33%)
Mutual labels:  8051
Character12
DirectX 12 character animation and rendering. Note: currently, there is no AA deployed in this sample, because it originally worked with temporal AA in my full scene rendering; please use AA settings in the panel provided by your graphics-card vendor for a better visualization.
Stars: ✭ 19 (-36.67%)
Mutual labels:  character
CH552
L1 R1:WCH 24MHz MCS-51 USB MCU (CH552T/CH552P/CH552E/CH552G/CH551G)
Stars: ✭ 32 (+6.67%)
Mutual labels:  8051
kendryte-flash-windows
Kendryte flash utility for Windows
Stars: ✭ 28 (-6.67%)
Mutual labels:  flash
lua-wcwidth
Pure Lua implementation of the wcwidth() function
Stars: ✭ 14 (-53.33%)
Mutual labels:  character
gonvert
Golang character encoding converter with an automatic code-estimation.
Stars: ✭ 24 (-20%)
Mutual labels:  character
Dragonbonesas
DragonBones ActionScript Runtime
Stars: ✭ 248 (+726.67%)
Mutual labels:  flash
jurl
Fast and simple URL parsing for Java, with UTF-8 and path resolving support
Stars: ✭ 84 (+180%)
Mutual labels:  utf-8
Virtual Controllers
Virtual controls for use in Flash based games on touch devices. Includes thumbstick and button ui elements
Stars: ✭ 16 (-46.67%)
Mutual labels:  flash
utf utils
My work on high-speed conversion of UTF-8 to UTF-32/UTF-16
Stars: ✭ 45 (+50%)
Mutual labels:  utf-8
OpenLCD
An open source serial LCD (HD44780) controller based on the ATmega328.
Stars: ✭ 28 (-6.67%)
Mutual labels:  lcd-display

English|Chinese

S51_UTF_8_FontLibrary

UTF-8 font dot matrix data is saved through external FLASH
s51 UTF-8 font is an open source font based on the simple51 framework. This library is mainly used to display Chinese ASCII codes or other Chinese characters on a monochrome dot matrix display module. Read through SPI FLASH.

Why is UTF-8 ?

The first point is that UTF-8 is the currently popular encoding set. Compared with GB2312 and GBK, it supports more characters.
The second point is that on Keil, some GB2312 characters use the / xFD encoding. Since Keil does not support the compilation of / xFD, additional measures are required.
Such as: "code char RussianString [] =" My Text "" \ xFD ";"
See details:GENERAL: COMPILER IGNORES 0XFD, 0XFE, 0XFF VALUES IN STRINGS

Supported characters

ASCII 5x8
ASCII 16x8
The Chinese Compatible GB2312 16x16

Getting Started

  1. First burn the fontbin file into the flash, the flash capacity must be greater than 16Mbits (2MBytes) 16Mbits SPI FLASH is used in the example

  2. Copy s51_fontlib.c and s51_fontlib.h to the project file

  3. Write the interface function of the file, here the interface function is the SPI bus interface

     uint8_t Simple51_FontLib_Interface(uint8_t _data, uint8_t _ss) 
     {
         uint8_t _getdata = 0x00;
         extern SPI_HandleTypeDef hspi1;
    
         pin_fontss = _ss;
         Simple51_SPI_TransmitReceive(&hspi1, &_data, &_getdata, 1);
         return _getdata;
     } 
    
  4. Write your own LCD display function and call, reference test function

     S51_GUI_Display_Str(Font_8,0,0,"ASCII Test",0,0);
     S51_GUI_Display_Str(Font_16, 2, 0, "A!@中文测试", 0, 0);
     S51_GUI_Display_Str(Font_16, 4, 0, "三升锡", 0, 1);
    
  5. Display effect

    display effect

License

Apache License
Version 2.0, January 2004

Contact information

[email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].