UP 支持直接字符配置
This commit is contained in:
@@ -272,10 +272,12 @@ void OLED_ShowCHString(OLED_T *dev, uint8_t x, uint8_t y, uint8_t *str) {
|
||||
step = Font_utf8_to_unicode(str, &unicode_letter);
|
||||
if (step != 0) {
|
||||
Chinese_t *hzk = find_chinese_data(GET_LOW_BYTE1(unicode_letter), GET_LOW_BYTE0(unicode_letter));
|
||||
OLED_ShowCHChr(dev, x, y, hzk);
|
||||
x += Hzk_size;
|
||||
str += step;
|
||||
found = true;
|
||||
if(hzk!=NULL){
|
||||
OLED_ShowCHChr(dev, x, y, hzk);
|
||||
x += Hzk_size;
|
||||
str += step;
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
OLED_ShowChar(dev, x, y, *str, Hzk_size);
|
||||
|
Reference in New Issue
Block a user