Re: Displaying real-time data through LCD



"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


.



Relevant Pages

  • Re: Arabic cursive in Unicode
    ... For example, on the Mac, as you type an Arabic character, you see an isolated form or a final form. ... This means that the display software has to look at the context of the "logical character codes" and select the appropriate "presentation glyphs" every time the text has to be re-displayed. ... It would be up to the software whether to give the user the option of displaying the ligatures from the Presentation Forms-A list. ... I suspect that this kind of option would only be available in specialized Arabic-language input software. ...
    (sci.lang)
  • [PATCH] console UTF-8 fixes
    ... I send a patch to the UTF-8 part of the vt driver. ... If a certain character is not found in the glyph ... characters) is to simply display the glyph loaded in that position. ...
    (Linux-Kernel)
  • Where has the plain acute character gone
    ... I am desperately trying to make bash (or xterm or konsole using ... bash) display an "acute" ... one could display such a character using the ...
    (Debian-User)
  • Re: Soft-hyphens or breakable points in a string
    ... > The Unicode line breaking rules define "@" as belonging to line breaking ... The "For purposes of display" would appear to rule out the original ... any line-break must be followed by a whitespace character ). ... > quite some trouble when it doesn't. ...
    (comp.infosystems.www.authoring.html)
  • Re: Is threading the right solution for this challenge?
    ... The CPU will not cycle out of control on the display thread, ... WITH TIMEOUT would be fairly ... "I've got a cart with a donkey which has a HUGE ... purely a Character Mode display. ...
    (comp.lang.cobol)