From b0901daa85d95a4020056a030c6aecb02df22d1e Mon Sep 17 00:00:00 2001 From: Iakabos <46475652+Iakabos@users.noreply.github.com> Date: Sun, 19 Jul 2020 17:18:08 -0700 Subject: 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 --- config/example-extras.cfg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'config/example-extras.cfg') diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 6ab4398b..f5f6bdb4 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -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: -- cgit v1.2.3-70-g09d2