Page 1 of 1

Has anyone compiled XGLCD Lib with mikroBasic for AVR?

Posted: 06 Aug 2007 21:24
by octal
Hi,
Has anyone compiled XGLCD Lib with mikroBasic for AVR?I never compiled it because I do not own avr hardware to do tests, but since it relays only on GLCD Lib and no asm code is used, it may compile for avr.
Can anybody do tests and let me know if big fonts sizes works with mikroBasic for AVR?

PS. Perhaps the files for pic have to be renamed as *.abas/*.apas instead of *.pbas/*.ppas

Regards
Octal

Posted: 05 Oct 2008 15:01
by Adam
No , It don't work fine . Appear garbage characters

Posted: 11 Oct 2008 19:56
by johankrava
The same problem....

Posted: 01 Dec 2008 05:40
by Adam
Seem to problem with pointer in Mikrobasic AVR , that cause XGLCD does not work fine .

I have this code :
program pointertest
const aaa as byte[8]=(1,2,3,4,5,6,7,8)
dim mypointer as ^byte
t as string[3]

main:

Glcd_Init(PORTC, 1, 2, 5, 4, 0, 3, PORTB) ' (1,2,5,4,0,3) (2,1,3,4,5,0)
Glcd_Set_Font(font5x8, 5, 8, 32)
glcd_fill(0)

mypointer= @aaa


bytetostr( mypointer^,t)
glcd_write_text( t,32,0,1)

end.
The result is 255 , is that right ?

Posted: 01 Dec 2008 18:14
by Thomas.Pahl@t-online.de
Hi,
pointer cannot point to constant. Byte can only adress first 256 adresses of RAM.
Thopas

Posted: 02 Dec 2008 07:26
by Adam
Can you help me edit my code ? Please help me