forked from kofal.net/zmk
feature(shields): Add nice!view
* Use two shield system, nice_view, and nice_view_adapter * Build system fixes for interconnect use.
This commit is contained in:
22
app/boards/shields/nice_view/Kconfig.defconfig
Normal file
22
app/boards/shields/nice_view/Kconfig.defconfig
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if SHIELD_NICE_VIEW
|
||||
|
||||
config ZMK_DISPLAY
|
||||
select LVGL_FONT_MONTSERRAT_26
|
||||
|
||||
if ZMK_DISPLAY
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config LS0XX
|
||||
default y
|
||||
|
||||
config ZMK_WIDGET_WPM_STATUS
|
||||
default y if !ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL
|
||||
|
||||
endif # ZMK_DISPLAY
|
||||
|
||||
endif
|
||||
5
app/boards/shields/nice_view/Kconfig.shield
Normal file
5
app/boards/shields/nice_view/Kconfig.shield
Normal file
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_NICE_VIEW
|
||||
def_bool $(shields_list_contains,nice_view)
|
||||
5
app/boards/shields/nice_view/README.md
Normal file
5
app/boards/shields/nice_view/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# nice!view
|
||||
|
||||
The nice!view is a low power, high refresh rate display meant to replace I2C OLEDs traditionally used.
|
||||
|
||||
This shield requires that an `&nice_view_spi` labelled SPI bus is provided with *at least* MOSI, SCK, and CS pins defined.
|
||||
4
app/boards/shields/nice_view/nice_view.conf
Normal file
4
app/boards/shields/nice_view/nice_view.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
# Enable nice!view
|
||||
CONFIG_ZMK_DISPLAY=y
|
||||
CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_26=y
|
||||
CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26=y
|
||||
23
app/boards/shields/nice_view/nice_view.overlay
Normal file
23
app/boards/shields/nice_view/nice_view.overlay
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
&nice_view_spi {
|
||||
status = "okay";
|
||||
nice_view: ls0xx@0 {
|
||||
compatible = "sharp,ls0xx";
|
||||
label = "DISPLAY";
|
||||
spi-max-frequency = <1000000>;
|
||||
reg = <0>;
|
||||
width = <160>;
|
||||
height = <68>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,display = &nice_view;
|
||||
};
|
||||
};
|
||||
8
app/boards/shields/nice_view/nice_view.zmk.yml
Normal file
8
app/boards/shields/nice_view/nice_view.zmk.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
file_format: "1"
|
||||
id: nice_view
|
||||
name: nice!view
|
||||
type: shield
|
||||
url: https://nicekeyboards.com/nice-view
|
||||
requires: [nice_view_header]
|
||||
features:
|
||||
- display
|
||||
Reference in New Issue
Block a user