Hi Dennis.
Well, you think simple and in most cases this is good. But not this one!
OK. Lets take the number in your array, for example 1,2,3.
If at the end, if you add these 3 array elements together you will get 6, or binary 6 if you want.
What about 3,2,1? You will get the same, although is a completely different number. So you have to make calculations and multiply x100, x10 x1 and then sum up the result. Like we did at the second year of elementary school!
I think I did gave you a sample code for this.
Then you need some kind of LCD indexing (I covered this too, please look at your PMs).
The 1st position of the 1st row on LCDs is $80. So if you want to display at this place use:
LCDout $FE,$80+index,1st_character
Then index=index+1 and your next character goes to $80:
LCDout $FE,$80+index,2nd_character.
Of course all the above are pure an educational example. In your code you would put some traps for the index. Also you can avoid the addition in-line the LCDout command and make the index start from $80, etc all in a loop.
Sorry do not have the time to give you a complete working code.
Ioannis




Bookmarks