Graphic LCD font
Posted: Thu Mar 01, 2018 11:09 am
I am testing a graphic LCD with a SBC4 and python. I am trying to use the custom font, but it doesn't display anything. can you tell me what i am doing wrong?
if i use ch.writeText(LCDFont.FONT_5x8, 10, 10, "XXX") it works fine.
Code: Select all
if(ch.getDeviceID() == DeviceID.PHIDID_1204):
ch.setScreenSize(LCDScreenSize.SCREEN_SIZE_64x128)
ch.setFontSize(LCDFont.FONT_User2, 6, 8)
ch.writeText(LCDFont.FONT_User2, 10, 10, "XXX")