www.joy
-
it.net
Pascalstr. 8 47506 Neukirchen
-
Vluyn
//Accepts a single character and searches in the table for the
//matching hexadecimal value
void
LCDCharacter
(
char
character) {
LCDWrite(LCD_DATA,
0x00
);
for
(
int
index
=
0
; index
<
5
; index
++
)
{
LCDWrite(LCD_DATA, ASCII[character
-
0x20
][index]);
}
LCDWrite(LCD_DATA,
0x00
);
}
//Accepts the input and forwards it letter by letter
void
LCDString
(
char
*
characters) {
while
(
*
characters)
{
LCDCharacter(
*
characters
++
);
}
}
//resets all entries on the display
void
LCDClear
() {
for
(
int
index
=
0
; index
<
(LCD_X
*
LCD_Y
/
8
) ; index
++
)
{
LCDWrite(LCD_DATA,
0x00
);
}
positionXY(
0
,
0
);
}