Skip to content

Commit e00a052

Browse files
committed
Added nice-nano overlay to remap display pins
1 parent 8f9ed95 commit e00a052

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2022 The ZMK Contributors
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
7+
&pinctrl {
8+
spi0_default: spi0_default {
9+
group1 {
10+
psels = <NRF_PSEL(SPIM_SCK, 1, 06)>, // D9, remapped from 0,20, really not sure about these values
11+
<NRF_PSEL(SPIM_MOSI, 1, 04)>,// D8, remaped from 0,17
12+
<NRF_PSEL(SPIM_MISO, 0, 25)>;
13+
};
14+
};
15+
spi0_sleep: spi0_sleep {
16+
group1 {
17+
psels = <NRF_PSEL(SPIM_SCK, 1, 06)>,
18+
<NRF_PSEL(SPIM_MOSI, 1, 04)>,
19+
<NRF_PSEL(SPIM_MISO, 0, 25)>;
20+
low-power-enable;
21+
};
22+
};
23+
};
24+
25+
nice_view_spi: &spi0 {
26+
compatible = "nordic,nrf-spim";
27+
pinctrl-0 = <&spi0_default>;
28+
pinctrl-1 = <&spi0_sleep>;
29+
pinctrl-names = "default", "sleep";
30+
cs-gpios = <&pro_micro 10 GPIO_ACTIVE_HIGH>; // was &pro_micro 1
31+
};
32+
33+
/* &pro_micro_i2c { // should this be ignored? */
34+
/* status = "disabled"; */
35+
/* }; */

build.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
---
2121
include:
2222
- board: nice_nano_v2
23-
shield: tempest_left nice_view_adapter nice_view # TODO: needs pins to be manually set?
23+
shield: tempest_left nice_view # TODO: nice_view_adapter needed?
2424
- board: nice_nano_v2
25-
shield: tempest_right nice_view_adapter nice_view
25+
shield: tempest_right nice_view
2626
- board: nice_nano_v2
2727
shield: settings_reset
28-

0 commit comments

Comments
 (0)