Any chance you can help sort what is going on here?
yep, i never did test with other than 64x64 bmps, that masked the fault
now we know it works with 64x64 and 16x16 bmps at least
there is a defect in the include file, the bmp usercommand macro is not quite right
in the include file the bit in red needs to be added in
Code:
SSDBM?CCCCL macro Xin ,Yin ,Win,Hin,BMin
IFNDEF TBLPTRL
ERROR BITMAPS ONLY SUPPORTED ON PIC18
ENDIF
MOVE?CB Xin , _gx
MOVE?CB Yin , _gy
MOVE?CB Hin/8+Yin-1 , _gy_
MOVE?CB Win+Xin-1 , _gx_
MOVE?CW Win*Hin/8 , _glcd_rad
banksel _glcdbm
movlw low BMin
movwf _glcdbm
movlw high BMin
movwf _glcdbm +1
BANKSEL 0
L?CALL _ssd_bitmap
endm
Bookmarks