Use two shield system
This commit is contained in:
parent
fe2890acdb
commit
2012316cca
10 changed files with 41 additions and 28 deletions
|
@ -1,5 +1,4 @@
|
|||
# Enable nice!view
|
||||
CONFIG_ZMK_DISPLAY=y
|
||||
CONFIG_SSD1306=n
|
||||
CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_26=y
|
||||
CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26=y
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
&nice_view_spi {
|
||||
nice_view: ls0xx@0 {
|
||||
compatible = "sharp,ls0xx";
|
||||
label = "DISPLAY";
|
||||
spi-max-frequency = <1000000>;
|
||||
reg = <0>;
|
||||
width = <160>;
|
||||
height = <68>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,display = &nice_view;
|
||||
};
|
||||
};
|
|
@ -3,4 +3,20 @@
|
|||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
|
||||
&nice_view_spi {
|
||||
nice_view: ls0xx@0 {
|
||||
compatible = "sharp,ls0xx";
|
||||
label = "DISPLAY";
|
||||
spi-max-frequency = <1000000>;
|
||||
reg = <0>;
|
||||
width = <160>;
|
||||
height = <68>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,display = &nice_view;
|
||||
};
|
||||
};
|
||||
|
|
2
app/boards/shields/nice_view_oled/Kconfig.defconfig
Normal file
2
app/boards/shields/nice_view_oled/Kconfig.defconfig
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
5
app/boards/shields/nice_view_oled/Kconfig.shield
Normal file
5
app/boards/shields/nice_view_oled/Kconfig.shield
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_NICE_VIEW_OLED
|
||||
def_bool $(shields_list_contains,nice_view_oled)
|
|
@ -16,5 +16,3 @@ nice_view_spi: &spi0 {
|
|||
&pro_micro_i2c {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
#include "../nice_view.dtsi"
|
|
@ -16,5 +16,3 @@ nice_view_spi: &spi0 {
|
|||
&pro_micro_i2c {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
#include "../nice_view.dtsi"
|
2
app/boards/shields/nice_view_oled/nice_view_oled.conf
Normal file
2
app/boards/shields/nice_view_oled/nice_view_oled.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Disable OLED
|
||||
CONFIG_SSD1306=n
|
6
app/boards/shields/nice_view_oled/nice_view_oled.overlay
Normal file
6
app/boards/shields/nice_view_oled/nice_view_oled.overlay
Normal file
|
@ -0,0 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
9
app/boards/shields/nice_view_oled/nice_view_oled.zmk.yml
Normal file
9
app/boards/shields/nice_view_oled/nice_view_oled.zmk.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
file_format: "1"
|
||||
id: nice_view_oled
|
||||
name: nice!view
|
||||
type: shield
|
||||
url: https://nicekeyboards.com/nice-view
|
||||
requires: [i2c_oled]
|
||||
exposes: [nice_view]
|
||||
features:
|
||||
- display
|
Loading…
Add table
Reference in a new issue