mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-05 10:35:10 +00:00
This change allows to use SSD1306 based displays to be used on the SPI bus as well. Adding SPI shield. Tested on SSD1306 and SSD1309 based displays using I2C. Tested on SSD1309 based display using SPI. Signed-off-by: Marco Peter <marco@peter-net.ch>
41 lines
788 B
Plaintext
41 lines
788 B
Plaintext
# SSD1306 display controller configuration options
|
|
|
|
# Copyright (c) 2018 Phytec Messtechnik GmbH
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig SSD1306
|
|
bool "SSD1306 display driver"
|
|
depends on I2C || SPI
|
|
help
|
|
Enable driver for SSD1306 display driver.
|
|
|
|
if SSD1306
|
|
|
|
config SSD1306_DEFAULT_CONTRAST
|
|
int "SSD1306 default contrast"
|
|
default 128
|
|
range 0 255
|
|
help
|
|
SSD16XX default contrast.
|
|
|
|
choice SSD1306_CONTROLLER_TYPE
|
|
prompt "Display controller type"
|
|
default SSD1306_DEFAULT
|
|
help
|
|
Specify the type of the controller.
|
|
|
|
config SSD1306_DEFAULT
|
|
bool "Default SSD1306 controller"
|
|
|
|
config SSD1306_SH1106_COMPATIBLE
|
|
bool "Enable SH1106 compatible mode"
|
|
|
|
endchoice
|
|
|
|
config SSD1306_REVERSE_MODE
|
|
bool "SSD1306 reverse mode"
|
|
help
|
|
SSD16XX reverse video mode.
|
|
|
|
endif # SSD1306
|