Metrologic Optimus S Programming Manual page 87

"c" programming guide
Table of Contents

Advertisement

Example
if (GetVideoMode() == VIDEO_NORMAL) puts ("Normal Mode");
Description
This routine indicates the current display mode of the LCD.
Return
The return value can be one of the following, depending on the display mode:
VIDEO_NORMAL (0)
VIDEO_REVERSE (1)
SetVideoMode
See Also
IncContrast
To increase the LCD contrast.
Purpose
Syntax
void IncContrast (void);
Example
IncContrast();
This routine increases the LCD contrast by one level each time it is called, and
Description
the maximum value is 7.
Return
None
See Also
DecContrast, GetContrast, SetContrast
lcd_backlit
To set the LCD backlight.
Purpose
Syntax
void lcd_backlit (int state);
int state;
Example
lcd_backlit (1);
This routine toggles the LCD backlight depending on the value of state.
Description
Return
None
See Also
BKLIT_TIMEOUT
Chapter 3 Terminal Specific Function Library
The value of the parameter state can be one of the following:
BKLIT_OFF (0)
: Backlight off
BKLIT_LO (1)
: Backlight on
The system global variable BKLIT_TIMEOUT can be used to specify the
backlight duration in units of second. However, if the value of
BKLIT_TIMEOUT is zero, it means that the backlight will be on until it is
either turned off manually or its state is set to BKLIT_OFF.
: Normal mode in use
: Reverse mode in use
/* LCD backlight state */
/* turn on LCD backlight, low density */
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents