Use two shield system

This commit is contained in:
Nick Winans 2022-09-25 17:09:16 -05:00
parent fe2890acdb
commit 2012316cca
10 changed files with 41 additions and 28 deletions

View file

@ -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

View file

@ -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;
};
};

View file

@ -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;
};
};

View file

@ -0,0 +1,2 @@
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT

View 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)

View file

@ -16,5 +16,3 @@ nice_view_spi: &spi0 {
&pro_micro_i2c {
status = "disabled";
};
#include "../nice_view.dtsi"

View file

@ -16,5 +16,3 @@ nice_view_spi: &spi0 {
&pro_micro_i2c {
status = "disabled";
};
#include "../nice_view.dtsi"

View file

@ -0,0 +1,2 @@
# Disable OLED
CONFIG_SSD1306=n

View file

@ -0,0 +1,6 @@
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

View 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