That's what I get for shaving down another program and posting it, in a hurry no less...
I'll check what I posted and get a new file up there when I get a chance...figure by the weekend for sure.
In the meanwhile,
font var byte[1024]
used to hold the whole font which is copied out of eeprom into internal ram. If your PIC doesn't have 1024 available RAM, you can't use this example. In fact, your PIC MUST have 1024 RAM and at least 512 EEPROM available. When I get a chance, I'll post a 2nd version that won't require copying the font out of EEPROM, thereby won't require 1024 free ram.
digcount var byte
used in the clcddigout routine to output a number, sorta like "lcdout DEC variable"
if the number in the variable is $ffff, and you used digcount = 5, the output will be 65535, if you used digcount = 4, the output will be 5535, digcount = 2, output will be 35, and so on.
offset var byte
used in the clcddigout routine to specify a starting digit to output,
offset=0 means the whole thing,
offset=1 means starting from the 10's digit,
offset=2 means starting from the 100's digit, and so on...
Let me know if/when you get it working for you...and like I said, I'll double-check that file I posted.
Bookmarks