From d7ea295346f5f758a8b1a682ed3696b26c4fe4e8 Mon Sep 17 00:00:00 2001 From: Nick Winans Date: Mon, 26 Sep 2022 11:12:08 -0500 Subject: [PATCH] Move status and add assumption about bodge for adapter --- app/boards/shields/nice_view/nice_view.overlay | 1 + app/boards/shields/nice_view_adapter/README.md | 2 +- app/boards/shields/nice_view_adapter/boards/nice_nano.overlay | 1 - .../shields/nice_view_adapter/boards/nice_nano_v2.overlay | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/boards/shields/nice_view/nice_view.overlay b/app/boards/shields/nice_view/nice_view.overlay index 99ce98f9..eacdd41a 100644 --- a/app/boards/shields/nice_view/nice_view.overlay +++ b/app/boards/shields/nice_view/nice_view.overlay @@ -5,6 +5,7 @@ */ &nice_view_spi { + status = "okay"; nice_view: ls0xx@0 { compatible = "sharp,ls0xx"; label = "DISPLAY"; diff --git a/app/boards/shields/nice_view_adapter/README.md b/app/boards/shields/nice_view_adapter/README.md index e97aee4f..e38c34c4 100644 --- a/app/boards/shields/nice_view_adapter/README.md +++ b/app/boards/shields/nice_view_adapter/README.md @@ -4,7 +4,7 @@ This shield is used as an adapter between the nice!view and existing shields/boa 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. +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 write your own definition for the `&nice_view_spi` bus. ``` west build -b nice_nano_v2 -- -DSHIELD="lily58_left nice_view_adapter nice_view" diff --git a/app/boards/shields/nice_view_adapter/boards/nice_nano.overlay b/app/boards/shields/nice_view_adapter/boards/nice_nano.overlay index 3606a8a4..3a0ad462 100644 --- a/app/boards/shields/nice_view_adapter/boards/nice_nano.overlay +++ b/app/boards/shields/nice_view_adapter/boards/nice_nano.overlay @@ -6,7 +6,6 @@ nice_view_spi: &spi0 { compatible = "nordic,nrf-spim"; - status = "okay"; sck-pin = <20>; mosi-pin = <17>; miso-pin = <25>; diff --git a/app/boards/shields/nice_view_adapter/boards/nice_nano_v2.overlay b/app/boards/shields/nice_view_adapter/boards/nice_nano_v2.overlay index 3606a8a4..3a0ad462 100644 --- a/app/boards/shields/nice_view_adapter/boards/nice_nano_v2.overlay +++ b/app/boards/shields/nice_view_adapter/boards/nice_nano_v2.overlay @@ -6,7 +6,6 @@ nice_view_spi: &spi0 { compatible = "nordic,nrf-spim"; - status = "okay"; sck-pin = <20>; mosi-pin = <17>; miso-pin = <25>;