FireBirdLib - Topfield TMS PVR TAP Programming Library
VFD_SetSmallText.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_tmsvfd.h
"
3
4
bool
VFD_SetSmallText
(
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_14
, 0);
23
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_14
, 0);
24
if
(i > 1)
VFD_SetDisplayDigit
(
grid
, Text[1],
VFD_14
, 1);
25
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_14
, 1);
26
if
(i > 2)
VFD_SetDisplayDigit
(
grid
, Text[2],
VFD_14
, 2);
27
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_14
, 2);
28
if
(i > 3)
VFD_SetDisplayDigit
(
grid
, Text[3],
VFD_14
, 3);
29
else
VFD_SetDisplayDigit
(
grid
,
' '
,
VFD_14
, 3);
30
}
31
32
TRACEEXIT
();
33
return
TRUE;
34
}
FBLib_tmsvfd.h
VFD_14
@ VFD_14
Definition:
FBLib_tmsvfd.h:9
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_SetSmallText
bool VFD_SetSmallText(char *Text)
Definition:
VFD_SetSmallText.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tmsvfd
VFD_SetSmallText.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3