forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards/shields: ssd1306: Factorize and move to conditional Kconfig
Factorize definitions for ssd1306_128x32 and sd1306_128x64 shields and move to conditional Kconfig. As part of this change, direct drivers Kconfig symbols enabling (I2C, SSD1306) are removed as they are application responsibility. Also disabling SSD16XX is removed as SSD16XX should not be enabled by default. Signed-off-by: Erwan Gouriou <[email protected]>
- Loading branch information
Showing
14 changed files
with
68 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2019 Linaro Limited | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if SHIELD_SSD1306_128X64 || SHIELD_SSD1306_128X32 | ||
|
||
if DISPLAY | ||
|
||
config I2C | ||
default y | ||
|
||
config SSD1306 | ||
default y | ||
|
||
if LVGL | ||
|
||
config LVGL_DISPLAY_DEV_NAME | ||
default "SSD1306" | ||
|
||
config LVGL_HOR_RES | ||
default 128 | ||
|
||
config LVGL_VER_RES | ||
default 64 if SHIELD_SSD1306_128X64 | ||
default 32 if SHIELD_SSD1306_128X32 | ||
|
||
config LVGL_VDB_SIZE | ||
default 64 | ||
|
||
config LVGL_DPI | ||
default 148 | ||
|
||
config LVGL_BITS_PER_PIXEL | ||
default 1 | ||
|
||
choice LVGL_COLOR_DEPTH | ||
default LVGL_COLOR_DEPTH_1 | ||
endchoice | ||
|
||
endif # LVGL | ||
|
||
rsource "boards/*.defconfig" | ||
|
||
endif # DISPLAY | ||
|
||
endif # SHIELD_SSD1306_128X64 || SHIELD_SSD1306_128X32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2019 Linaro Limited | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config SHIELD_SSD1306_128X32 | ||
def_bool $(shields_list_contains,ssd1306_128x32) | ||
|
||
config SHIELD_SSD1306_128X64 | ||
def_bool $(shields_list_contains,ssd1306_128x64) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2019 Linaro Limited | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if BOARD_REEL_BOARD | ||
|
||
choice I2C_0_NRF_TYPE | ||
default I2C_0_NRF_TWI | ||
endchoice | ||
|
||
endif # BOARD_REEL_BOARD |
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
boards/shields/ssd1306_128x64/doc/index.rst → boards/shields/ssd1306/doc/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters