Graphic LCD font

Technical Discussions on any InterfaceKits
speed
Phidgetly
Posts: 48
Joined: Thu Feb 26, 2004 12:16 pm
Contact:

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.setScreenSize(LCDScreenSize.SCREEN_SIZE_64x128)
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
mparadis
Site Admin
Posts: 512
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

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