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
Has anyone compiled XGLCD Lib with mikroBasic for AVR?
Has anyone compiled XGLCD Lib with mikroBasic for AVR?
http://www.pocketmt.com
-
- Posts: 11
- Joined: 11 Oct 2008 19:44
The same problem....
PopularMicrocontrollers.com - [url=http://popularmicrocontrollers.com/]AVR Microcontrollers[/url]
Seem to problem with pointer in Mikrobasic AVR , that cause XGLCD does not work fine .
I have this code :
I have this code :
The result is 255 , is that right ?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.
-
- Posts: 158
- Joined: 24 May 2008 15:55
- Location: Germany