Has anyone compiled XGLCD Lib with mikroBasic for AVR?

General discussion on mikroBasic for AVR.
Post Reply
Author
Message
octal
Posts: 534
Joined: 09 Feb 2005 14:15
Location: France
Contact:

Has anyone compiled XGLCD Lib with mikroBasic for AVR?

#1 Post by octal » 06 Aug 2007 21:24

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
http://www.pocketmt.com

Adam
Posts: 38
Joined: 18 Sep 2008 10:21

#2 Post by Adam » 05 Oct 2008 15:01

No , It don't work fine . Appear garbage characters

johankrava
Posts: 11
Joined: 11 Oct 2008 19:44

#3 Post by johankrava » 11 Oct 2008 19:56

The same problem....
PopularMicrocontrollers.com - [url=http://popularmicrocontrollers.com/]AVR Microcontrollers[/url]

Adam
Posts: 38
Joined: 18 Sep 2008 10:21

#4 Post by Adam » 01 Dec 2008 05:40

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 ?

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

#5 Post by Thomas.Pahl@t-online.de » 01 Dec 2008 18:14

Hi,
pointer cannot point to constant. Byte can only adress first 256 adresses of RAM.
Thopas

Adam
Posts: 38
Joined: 18 Sep 2008 10:21

#6 Post by Adam » 02 Dec 2008 07:26

Can you help me edit my code ? Please help me

Post Reply

Return to “mikroBasic for AVR General”