User`s manual

RabbitFLEX User’s Manual www.rabbit.com 103
6.6.7 LCD
flexDispInit
int flexDispInit(Flex_LCD *lcd, Flex_LCDConf *user_conf);
DESCRIPTION
Initializes the given LCD, optionally using the given user configuration structure. This function
defaults the cursor to off, the backlight to off, and the contrast control to the display's default value.
PARAMETERS
lcd Pointer to an LCD data structure.
user_conf Pointer to a user-supplied configuration structure for this LCD, or NULL to
use the defaults supplied in the RabbitFLEX board's configuration library.
The structure definition is given as follows.
typedef struct {
char num_cols; //Columns on the display
char num_rows; //Rows on the display
//Start address of each row (up to 4 rows)
char row_addresses[4];
// Minimum voltage for contrast control
float anaout_contrast_min;
// Maximum voltage for contrast control
float anaout_contrast_max;
// Minimum duty cycle for contrast control
int pwm_contrast_min;
// Maximum duty cycle for contrast control
int pwm_contrast_max;
// Default scaled value for contrast control (0-255)
char def_contrast;
} Flex_LCDConf;
RETURN VALUE
None.
SEE ALSO
flexDispCursor, flexDispGoto, flexDispClear, flexDispPutc,
flexDispPrintf, flexDispOnoff, flexDispBacklight,
flexDispContrast