Displaying on an lcd screen
Archiver
Posts: 46,084
I am creating a counter that counts to a maximum of 99.9999 seconds
and below is the code
$(stampBS2p40)
Pbasic 2.0
time1 var byte
time2 var word
for time1 = 0 to 99
for time2= o to 9999
all if then statements
next
next
end
The problem comes when I want to display it to an LCD Screen(1X16
parallel LCD SCreen).I want to display it in the following format.
time1.time2.How can I do this.
I also have an idea. I was thinkng that I can create an array of 3
spaces that can contain words. I would place the variable time1 in
the first position,the character "." in the second position and the
variable time2 in the third.And then ask the LCD screen to display
all the contents of the array at the same time.It that possible.
and below is the code
$(stampBS2p40)
Pbasic 2.0
time1 var byte
time2 var word
for time1 = 0 to 99
for time2= o to 9999
all if then statements
next
next
end
The problem comes when I want to display it to an LCD Screen(1X16
parallel LCD SCreen).I want to display it in the following format.
time1.time2.How can I do this.
I also have an idea. I was thinkng that I can create an array of 3
spaces that can contain words. I would place the variable time1 in
the first position,the character "." in the second position and the
variable time2 in the third.And then ask the LCD screen to display
all the contents of the array at the same time.It that possible.