
Originally Posted by
cncmachineguy
It would go from 4385559271 -->4389271. No space in it.
Don't think of scrolling the display. Think of your array like this:
If I have 31 positions for the numbers, They will be T(30) to t(0)
each "scroll" is really just an update to the LCD, sending array positions T(30)-T(0)
with all the elements shifted 1 place to the left. (new targets enter from the right?)
you will be able to do MANY operations before time to scroll again. Those many operations are the checking for hits, adjusting the array and so forth.
Keep this in mind, assuming you are running 4mHz internal clock (no I haven't looked at the datasheet) thats 1 million inscrutions per second. if you want to scroll at a rate of .1 second, you have time left over for 100,00 inscrutions. So the "scrolling" is just a quick task, then done.
Now I have no idea how to actually write to the LCD, but I am assuming you just send it all the characters serially and not address each charater randomly. So your array may need to be 64 bytes instead of 32.
Bookmarks