
Chapter 3 Terminal Specific Function Library
81
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)
: Normal mode in use
VIDEO_REVERSE (1)
: Reverse mode in use
See Also
SetVideoMode
IncContrast
Purpose
To increase the LCD contrast.
Syntax
void IncContrast (void);
Example
IncContrast();
Description
This routine increases the LCD contrast by one level each time it is called, and
the maximum value is 7.
Return
None
See Also
DecContrast, GetContrast, SetContrast
lcd_backlit
Purpose
To set the LCD backlight.
Syntax
void lcd_backlit (int state);
int state; /* LCD backlight state */
Example
lcd_backlit (1); /* turn on LCD backlight, low density */
Description
This routine toggles the LCD backlight depending on the value of state.
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.
Return
None
See Also
BKLIT_TIMEOUT
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...