Yes, ARRAWRITE quite wasteful and not "worth it" for simple things like static data.
There are other ways that are more efficient.Code:Select Case Z Case "A" FONTLINE[0] = 12 FONTLINE[1] = 23 FONTLINE[2] = 34 FONTLINE[3] = 45 FONTLINE[4] = 56 FONTLINE[5] = 78 FONTLINE[6] = 33 FONTLINE[7] = 44 Case "B" FONTLINE[0] = 42 FONTLINE[1] = 23 FONTLINE[2] = 34 FONTLINE[3] = 55 FONTLINE[4] = 56 FONTLINE[5] = 78 FONTLINE[6] = 93 FONTLINE[7] = 44 END SELECT
The FLASH memory of PIC16 devices are 14bits wide. If your characters are 7 pixels wide you can store 2 "lines" in each memory location. See, for example Richards code here:
http://www.picbasic.co.uk/forum/showthread.php?t=24171




Bookmarks