display: Add configuration options for OLED displays (#3084)

Add user-configurable contrast, vcomh (affects "smearing"), and invert options for SSD1306/SH1106 type OLED displays.

Signed-off-by:  James Esau <james_esau@hotmail.com>
This commit is contained in:
Iakabos
2020-07-19 17:18:08 -07:00
committed by GitHub
parent 0f24406acc
commit b0901daa85
2 changed files with 16 additions and 5 deletions

View File

@@ -1831,8 +1831,16 @@
# optional. The cs_pin and a0_pin parameters must be provided when
# using an uc1701 display.
#contrast: 40
# The contrast to set when using a uc1701 type display. The value may
# range from 0 to 63. Default is 40.
# The contrast to set when using a uc1701 or SSD1306/SH1106 type display
# For UC1701 the value may range from 0 to 63. Default is 40.
# For SSD1306/SH1106 the value may range from 0 to 256. Default is 239.
#vcomh: 0
# Set the Vcomh value on SSD1306/SH1106 displays. This value is
# associated with a "smearing" effect on some OLED displays.
# The value may range from 0 to 63. Default is 0.
#invert: FALSE
# TRUE inverts the pixels on certain OLED (SSD1306/SH1106) displays
# The default is FALSE
#cs_pin:
#dc_pin:
#spi_bus: