-
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.
Merge pull request #1 from phaze-ZA/phaze-ZA-patch-1
Added dongle support
- Loading branch information
Showing
7 changed files
with
52 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## |
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_DONGLE | ||
def_bool $(shields_list_contains,nice_dongle) |
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,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"; | ||
}; |
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_dongle | ||
name: nice!view dongle | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Disable OLED | ||
CONFIG_SSD1306=n |
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 @@ | ||
// empty |
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