forked from moergo-sc/zmk
-
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.
* Use two shield system, nice_view, and nice_view_adapter * Build system fixes for interconnect use.
- Loading branch information
Showing
25 changed files
with
252 additions
and
7 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
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
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,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 |
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,5 @@ | ||
# Copyright (c) 2022 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
config SHIELD_NICE_VIEW | ||
def_bool $(shields_list_contains,nice_view) |
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,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. |
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,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 |
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,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; | ||
}; | ||
}; |
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 @@ | ||
file_format: "1" | ||
id: nice_view | ||
name: nice!view | ||
type: shield | ||
url: https://nicekeyboards.com/nice-view | ||
requires: [nice_view_header] | ||
features: | ||
- display |
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,2 @@ | ||
# Copyright (c) 2022 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT |
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,5 @@ | ||
# Copyright (c) 2022 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
config SHIELD_NICE_VIEW_ADAPTER | ||
def_bool $(shields_list_contains,nice_view_adapter) |
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,11 @@ | ||
# nice!view Adapter | ||
|
||
This shield is used as an adapter between the nice!view and existing shields/boards that expose an I2C OLED header. | ||
|
||
To use this shield, you should add this shield to your list of shields *before* `nice_view`. | ||
|
||
The nice!view will use the SDA/SCL pins of the OLED, and then the adapter expects a final pin to be "bodged" from your microcontroller to the nice!view CS pin. This adapter assumes that the CS pin bodged is the `&pro_micro 1` pin or "D1", which is the top left pin when looking at the front of the board. If you can't use this pin, you'll need to override the `cs-gpios` for the `&nice_view_spi` bus (in your `zmk-config` keymap for example) or you will want to define your own `&nice_view_spi` bus without using this adapter. | ||
|
||
``` | ||
west build -b nice_nano_v2 -- -DSHIELD="lily58_left nice_view_adapter nice_view" | ||
``` |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/bluemicro840_v1.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <17>; | ||
mosi-pin = <15>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/mikoto_520.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <20>; | ||
mosi-pin = <17>; | ||
miso-pin = <5>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/nice_nano.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <20>; | ||
mosi-pin = <17>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/nice_nano_v2.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <20>; | ||
mosi-pin = <17>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/nrfmicro_11.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <17>; | ||
mosi-pin = <15>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/nrfmicro_11_flipped.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <31>; | ||
mosi-pin = <30>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/nrfmicro_13.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <17>; | ||
mosi-pin = <15>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/boards/shields/nice_view_adapter/boards/puchi_ble_v1.overlay
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,17 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
nice_view_spi: &spi0 { | ||
compatible = "nordic,nrf-spim"; | ||
sck-pin = <17>; | ||
mosi-pin = <15>; | ||
miso-pin = <25>; | ||
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
&pro_micro_i2c { | ||
status = "disabled"; | ||
}; |
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,2 @@ | ||
# Disable OLED | ||
CONFIG_SSD1306=n |
5 changes: 5 additions & 0 deletions
5
app/boards/shields/nice_view_adapter/nice_view_adapter.overlay
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,5 @@ | ||
/* | ||
* Copyright (c) 2022 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ |
7 changes: 7 additions & 0 deletions
7
app/boards/shields/nice_view_adapter/nice_view_adapter.zmk.yml
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,7 @@ | ||
file_format: "1" | ||
id: nice_view_adapter | ||
name: nice!view adapter | ||
type: shield | ||
url: https://nicekeyboards.com/nice-view | ||
requires: [i2c_oled] | ||
exposes: [nice_view_header] |
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
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
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