Skip to content

Commit

Permalink
Merge pull request #1 from phaze-ZA/phaze-ZA-patch-1
Browse files Browse the repository at this point in the history
Added dongle support
  • Loading branch information
Promytheos authored Sep 22, 2024
2 parents 3a679d6 + 67b99ca commit 28f1276
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions boards/shields/nice_dongle/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
##
5 changes: 5 additions & 0 deletions boards/shields/nice_dongle/Kconfig.shield
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_DONGLE
def_bool $(shields_list_contains,nice_dongle)
35 changes: 35 additions & 0 deletions boards/shields/nice_dongle/boards/nice_nano_v2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

&pinctrl {
spi0_default: spi0_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 29)>,
<NRF_PSEL(SPIM_MOSI, 0, 22)>,
<NRF_PSEL(SPIM_MISO, 0, 25)>;
};
};
spi0_sleep: spi0_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 29)>,
<NRF_PSEL(SPIM_MOSI, 0, 22)>,
<NRF_PSEL(SPIM_MISO, 0, 25)>;
low-power-enable;
};
};
};

nice_view_spi: &spi0 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
};

&pro_micro_i2c {
status = "disabled";
};
7 changes: 7 additions & 0 deletions boards/shields/nice_dongle/nice_dongle.ZMK.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
file_format: "1"
id: nice_dongle
name: nice!view dongle
type: shield
url: https://nicekeyboards.com/nice-view
requires: [i2c_oled]
exposes: [nice_view_header]
2 changes: 2 additions & 0 deletions boards/shields/nice_dongle/nice_dongle.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Disable OLED
CONFIG_SSD1306=n
1 change: 1 addition & 0 deletions boards/shields/nice_dongle/nice_dongle.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// empty
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
---
include:
- board: nice_nano_v2
shield: vortex_corne_center nice_view
shield: vortex_corne_center nice_dongle nice_view
- board: nice_nano_v2
shield: vortex_corne_left nice_view_adapter nice_view
- board: nice_nano_v2
Expand Down

0 comments on commit 28f1276

Please sign in to comment.