FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_SetLargeText.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_tmsvfd.h
"
3
4
bool
VFD_SetLargeText
(
char
*Text)
5
{
6
TRACEENTER
();
7
8
dword i;
9
10
byte
*
grid
= (
byte
*)
FIS_vGrid
();
11
12
if
(!
VFDUsedByTAP
|| !
grid
)
13
{
14
TRACEEXIT
();
15
return
FALSE;
16
}
17
18
if
(Text)
19
{
20
i = strlen(Text);
21
22
if
(i > 0)
VFD_SetDisplayDigit
(
grid
, Text[0],
VFD_17
, 0);
23
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 0);
24
if
(i > 1)
VFD_SetDisplayDigit
(
grid
, Text[1],
VFD_17
, 1);
25
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 1);
26
if
(i > 2)
VFD_SetDisplayDigit
(
grid
, Text[2],
VFD_17
, 2);
27
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 2);
28
if
(i > 3)
VFD_SetDisplayDigit
(
grid
, Text[3],
VFD_17
, 3);
29
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 3);
30
if
(i > 4)
VFD_SetDisplayDigit
(
grid
, Text[4],
VFD_17
, 4);
31
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 4);
32
if
(i > 5)
VFD_SetDisplayDigit
(
grid
, Text[5],
VFD_17
, 5);
33
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 5);
34
if
(i > 6)
VFD_SetDisplayDigit
(
grid
, Text[6],
VFD_17
, 6);
35
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 6);
36
if
(i > 7)
VFD_SetDisplayDigit
(
grid
, Text[7],
VFD_17
, 7);
37
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_17
, 7);
38
}
39
40
TRACEEXIT
();
41
return
TRUE;
42
}
FBLib_tmsvfd.h
VFD_17
@ VFD_17
Definition:
FBLib_tmsvfd.h:10
grid
byte * grid
Definition:
VFD_GetControl.c:4
VFD_SetDisplayDigit
void VFD_SetDisplayDigit(byte *DisplayBuffer, byte Character, DISPLAYSTYLE DisplayStyle, byte Digit)
Definition:
VFD_SetDisplayDigit.c:3
VFDUsedByTAP
bool VFDUsedByTAP
Definition:
VFD_GetControl.c:3
FIS_vGrid
dword FIS_vGrid(void)
Definition:
FIS_vgrid.c:3
VFD_SetLargeText
bool VFD_SetLargeText(char *Text)
Definition:
VFD_SetLargeText.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tmsvfd
VFD_SetLargeText.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3