Displaying data on an LCD
Archiver
Posts: 46,084
This is probably an easy one, but since I am new to stamps it is
difficult for me.
I am trying to display data that my program calculates to a 4x20
LCD. For example, if my program runs through some calculations and
returns a number such as 5.158, how can I get this number to display
on the LCD? I have found several examples that show how to display
text to the display, but none that show how to send data that is
calculated to the display.
Can someone please explain to me how to do this (bearing in mind I do
not have a ton of experience with stamps).
Or could someone please send me some code that would show me how to
do this.
Thanks
difficult for me.
I am trying to display data that my program calculates to a 4x20
LCD. For example, if my program runs through some calculations and
returns a number such as 5.158, how can I get this number to display
on the LCD? I have found several examples that show how to display
text to the display, but none that show how to send data that is
calculated to the display.
Can someone please explain to me how to do this (bearing in mind I do
not have a ton of experience with stamps).
Or could someone please send me some code that would show me how to
do this.
Thanks
Comments
Is your Display a parallel interface or serial interface?
I have examples on my web site for how to control HD44780
based LCD's, and Matrix Orbital serial LCDs.
Also, what type of stamp are you using? My examples all use a
BS2 - therefore you have to "Bit Bash" a solution - rather than
using the BS2p's built in LCD and I2C commands, etc.
Get in touch with me off list if you want:
ben.lennard@p...
Cheers,
Lenny,
Wellington, New Zrealand.
--- In basicstamps@yahoogroups.com, "skenny17"
<skenny17@y...> wrote:
>
> This is probably an easy one, but since I am new to stamps it
is
> difficult for me.
>
> I am trying to display data that my program calculates to a 4x20
> LCD. For example, if my program runs through some
calculations and
> returns a number such as 5.158, how can I get this number to
display
> on the LCD? I have found several examples that show how to
display
> text to the display, but none that show how to send data that is
> calculated to the display.
>
> Can someone please explain to me how to do this (bearing in
mind I do
> not have a ton of experience with stamps).
>
> Or could someone please send me some code that would
show me how to
> do this.
>
> Thanks