Adjust the contrast of a mono display from 0% to 100%. The default set is 50%. 0% is lowest contrast, 100% is highest (darkest).
Note: not available for color and OLED displays.
The contrast on 128x64 GLCD using KS0108 and ST7920 controller only be adjustable by a hardware pot.
|
Direct: |
"CTa" |
|
Arduino: |
void setContrast(uint8_t a)
|
|
C: |
void Digole_setContrast(uint8_t a) |
a
A byte number between 0 to 100.
none
Example (Arduino):
mydisp.setContrast(50); //set the contrast to 50%
serial.writeString("CT\x32");
| Version | Description |
|---|---|