Custom fonts rotated 90 deg on GLCD

GLCD Font Creator software is the ultimate solution to create personalized fonts, symbols and icons for Graphic LCDs. It generates code compatible with All mikroElektronika compilers
Post Reply
Author
Message
DinoDen
Posts: 3
Joined: 26 Apr 2016 19:45

Custom fonts rotated 90 deg on GLCD

#1 Post by DinoDen » 26 Apr 2016 20:02

Hi I am doing a custom #12 Comic Sans font, and when I display it on the 128 X 64 GLCD display that came with the Easy PIC7, my numbers (3digits) are rotated 90 degrees.
Any ideas?

I am using a PIC18F452 @ 10MHz XTAL
Below is the test program. Any help would be appreciated.




'************************************************************

program SPEEDO

dim GLCD_DataPort as byte at PORTD

dim GLCD_CS1 as sbit at PORTB.0
GLCD_CS2 as sbit at PORTB.1
GLCD_RS as sbit at PORTB.2
GLCD_RW as sbit at PORTB.3
GLCD_EN as sbit at PORTB.4
GLCD_RST as sbit at PORTB.5


dim GLCD_CS1_Direction as sbit at TRISB0_bit
GLCD_CS2_Direction as sbit at TRISB1_bit
GLCD_RS_Direction as sbit at TRISB2_bit
GLCD_RW_Direction as sbit at TRISB3_bit
GLCD_EN_Direction as sbit at TRISB4_bit
GLCD_RST_Direction as sbit at TRISB5_bit

dim V1 as Word
dim V2 as Byte
dim V3 as Byte
dim DRAW as Byte
dim txt as string[15]


'*******************************************************

main:

ADCON0 = $C1
ADCON1 = $84

TRISA = %000010
TRISB = 0
TRISC = 0
TRISD = 0


Glcd_Init() ' Initialize Glcd
Glcd_Fill(0x00) ' Clear Glcd


Glcd_Image(@KMH) ' Draw image

Glcd_Set_Font_Adv(@Comic_Sans, 10, 50)


START:

V1 = ADC_Read(1)
V1 = V1 / 8.1 'SCALE FROM 0 - 125 km/h

byteToStr(V1,txt)

Glcd_Write_Text_Adv(txt,10,50)

GOTO START

end.

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: Custom fonts rotated 90 deg on GLCD

#2 Post by uros.cvetinovic » 27 Apr 2016 10:54

Hi,

Can you please tell me how did you generate resource for that font?

Also, can you zip and send your whole project?

Best regards,

Uros

DinoDen
Posts: 3
Joined: 26 Apr 2016 19:45

Re: Custom fonts rotated 90 deg on GLCD

#3 Post by DinoDen » 27 Apr 2016 15:55

Hi Uros.

I used the Font Creator from your web site.
Here is the whole project.

Thanks
Attachments
SPEEDO.zip
(66.61 KiB) Downloaded 416 times

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: Custom fonts rotated 90 deg on GLCD

#4 Post by uros.cvetinovic » 28 Apr 2016 17:01

Hi,

I believe I have answered you on our helpdesk on this matter.

We can continue our correspondence there.

Best regards,

Uros

Post Reply

Return to “GLCD Font Creator Software”