User`s manual
RabbitFLEX User’s Manual www.rabbit.com 113
flexDispContrast
int flexDispContrast(Flex_LCD *lcd, char vcontrast);
DESCRIPTION
Sets the contrast for the display. The vcontrast value range is from 0–255, and is scaled to a
contrast-control voltage.
PARAMETERS
lcd Pointer to an LCD data structure.
vcontrast Contrast setting (0–255) that is scaled to produce a contrast-control voltage
(lower values produce higher contrast).
RETURN VALUE
0: success
-1: error (no contrast control on this display)
SEE ALSO
flexDispInit, flexDispCursor, flexDispGoto, flexDispClear,
flexDispPutc, flexDispPrintf, flexDispOnoff, flexDispBacklight