Re: Displaying real-time data through LCD
- From: "Meindert Sprang" <ms@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 09:21:53 +0200
"sani_figs" <adrian_figui@xxxxxxxxx> wrote in message
news:_sydnRiHGcIIfhLVnZ2dnUVZ_hmdnZ2d@xxxxxxxxxxxxxxx
Hi,
As of now, I can display text through a 4x20 LCD ("Hello World!").
However, I need to display real-time data which is computed every 2secs.
<snip>
I'm thinking of something like the printf function which will be called
everytime data needs to be displayed:
printf("Reading: %d",data);
But how can I implement this if the data is a predefined string and if the
data is sent one char at a time?
Either use sprintf() to create a string which you can send character by
character or check your compiler manuals how to implement your own
putchar(). Most compilers allow you to create your own putchar() function,
tailored to your hardware. All other standard C functions that print
something, like puts(), printf() etc., will eventually call putchar().
Meindert
.
- References:
- Displaying real-time data through LCD
- From: sani_figs
- Displaying real-time data through LCD
- Prev by Date: Re: Recommendations for a Quadrature Decoder IC or MicroController
- Next by Date: Re: Recommendations for a Quadrature Decoder IC or MicroController
- Previous by thread: Re: Displaying real-time data through LCD
- Next by thread: Re: Displaying real-time data through LCD
- Index(es):
Relevant Pages
|