User manual

Advice
For more on the subject of preprocessors, see:
http://www.mikrocontroller.net/articles/C-Pr%C3%A4prozesso
r
The following program point offers an option for outputting
characters individually as if on an old typewriter:
001 char txt[6] = {"HELLO"};
002 for(i = 0; i < 5; i++)
003 {
004 lcd.print(txt[i]);
005 delay(500);
006 }
Here, an array with 6 characters is set up and preassigned with
the string »HELLO« . We always need to set up the array bigger
by 1 because an invisible string termination (\0) is added
automatically.
The
For()
-loop outputs every single character from the array with
a brief pause. For the entire thing to look more like a
typewriter, the cursor is switched on.
CREATING OWN
CHARACTERS
Creating own characters as has already been described just now
using
.createChar()
is often needed when using dot-matrix LCDs,
since many characters needed in practice are not included in the
character table of the LCD. There is the option of creating own
characters dot by dot for this and displaying them then. If you
need, e.g., a smiley, you can define it via an array and send
it to the LCD.
There is the option of filing up to eight own characters in the
RAM (memory) of the LCD. The array for our special character must
be 8 bytes large and is best written as shown in the example code.
The character can, e.g., be designed on a checked drawing pad.
You can see that it is made up of 8 rows at 5 values each, which