fix 8x6 char display bug

This commit is contained in:
YXZhu
2022-08-09 21:09:10 +08:00
parent 2240710d39
commit d94167793e
22 changed files with 4091 additions and 4004 deletions
@@ -0,0 +1,14 @@
Toolchain=
Series=
Description=
Address=0x08000000
Target Path=obj\EpaperModuleTest_CH32V103.hex
Erase All=true
Program=true
Verify=true
Reset=true
Vendor=WCH
MCU=CH32V103C8T6
Mcu Type=CH32V10x
Link=WCH-Link
@@ -634,7 +634,14 @@ void epd_paint_showString(uint16_t x, uint16_t y, uint8_t *chr, uint16_t size1,
{
epd_paint_showChar(x, y, *chr, size1, color);
chr++;
x += size1 / 2;
if (size1 == 8)
{
x += 6;
}
else
{
x += size1 / 2;
}
}
}