Skip to content

Commit e5819f7

Browse files
VynDragonfabiobaltieri
authored andcommitted
drivers: display: Introduce SH1122
Introduces Sinowealth SH1122 Greyscale 256x64 OLED controller Signed-off-by: Camille BAUD <mail@massdriver.space>
1 parent ed9bed1 commit e5819f7

File tree

7 files changed

+622
-0
lines changed

7 files changed

+622
-0
lines changed

drivers/display/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ zephyr_library_sources_ifdef(CONFIG_IST3931 display_ist3931.c)
1616
zephyr_library_sources_ifdef(CONFIG_LS0XX ls0xx.c)
1717
zephyr_library_sources_ifdef(CONFIG_MAX7219 display_max7219.c)
1818
zephyr_library_sources_ifdef(CONFIG_OTM8009A display_otm8009a.c)
19+
zephyr_library_sources_ifdef(CONFIG_SH1122 display_sh1122.c)
1920
zephyr_library_sources_ifdef(CONFIG_SSD1320 display_ssd1320.c)
2021
zephyr_library_sources_ifdef(CONFIG_SSD1306 ssd1306.c)
2122
zephyr_library_sources_ifdef(CONFIG_SSD1327 ssd1327.c)

drivers/display/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ source "drivers/display/Kconfig.nrf_led_matrix"
2626
source "drivers/display/Kconfig.ili9xxx"
2727
source "drivers/display/Kconfig.ist3931"
2828
source "drivers/display/Kconfig.sdl"
29+
source "drivers/display/Kconfig.sh1122"
2930
source "drivers/display/Kconfig.ssd1306"
3031
source "drivers/display/Kconfig.ssd1320"
3132
source "drivers/display/Kconfig.ssd1327"

drivers/display/Kconfig.sh1122

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SH1122 display controller configuration options
2+
# Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
menuconfig SH1122
6+
bool "SH1122 display controller driver"
7+
default y
8+
depends on DT_HAS_SINOWEALTH_SH1122_ENABLED
9+
select MIPI_DBI if $(dt_compat_on_bus,$(DT_COMPAT_SINOWEALTH_SH1122),mipi-dbi)
10+
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_SINOWEALTH_SH1122),i2c)
11+
help
12+
Enable driver for SH1122 display controller.
13+
14+
if SH1122
15+
16+
config SH1122_DEFAULT_CONTRAST
17+
int "SH1122 default contrast"
18+
default 16
19+
range 0 255
20+
help
21+
SH1122 default contrast.
22+
23+
endif # SH1122

0 commit comments

Comments
 (0)