Die Funktion setContrast ist wie folgt beschrieben:
C: uint8_t u8g_SetContrast(u8g_t *u8g, uint8_t contrast)
Description:
Assigns a new contrast value (0..255) to the display. Not all displays
or driver support the setting of the contrast value (see devices table).
Arguments:
u8g : Pointer to the u8g structure (C interface only).
contrast: New contrast value (0..255).
**Returns:**The value 1, if the contrast value has been assigned.
Use: Inside and outside picture loop. It is a good practice to use this
procedure not inside the picture loop.
Note: Available with v1.02
Example:
1 | contrast = u8g_SetContrast(&u8g, 255);
|
Wobei ich bei meinem Display leider keine Veränderung bei
unterschieldlichen Kontrastwerten feststellen konnte.