Graphic LCD font

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

Graphic LCD font

Post by speed »

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: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Graphic LCD font

Post by mparadis »

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

Who is online

Users browsing this forum: No registered users and 0 guests