Adjust the contrast of monochrome display

Description

 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.

Usage:

Direct:

"CTa"

Arduino:

void setContrast(uint8_t a)

C:

void Digole_setContrast(uint8_t a)

Parameters:

a

A byte number between 0 to 100.

Return:

none

Example (Arduino):

mydisp.setContrast(50);  //set the contrast to 50%

Example(direct)

serial.writeString("CT\x32");

Changelog

Version Description
   

See Also