Graphic LCD font

Technical Discussions on any InterfaceKits
Posts: 57
Joined: Thu Feb 26, 2004 12:16 pm

Graphic LCD font

Postby speed » 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?

Code: Select all

if(ch.getDeviceID() == DeviceID.PHIDID_1204):
ch.setFontSize(LCDFont.FONT_User2, 6, 8)
ch.writeText(LCDFont.FONT_User2, 10, 10, "XXX")

if i use ch.writeText(LCDFont.FONT_5x8, 10, 10, "XXX") it works fine.

User avatar
Site Admin
Posts: 632
Joined: Fri Oct 28, 2011 12:17 pm

Re: Graphic LCD font

Postby mparadis » Fri Mar 02, 2018 10:00 am

The custom font is empty by default. Have you used setCharacterBitmap to assign bitmaps to each letter?

Return to “InterfaceKits”

Who is online

Users browsing this forum: No registered users and 1 guest