Switch to pro_micro 4

This commit is contained in:
Nick Winans 2022-09-27 13:43:30 -05:00 committed by GitHub
parent 0bde065ff5
commit 72bb9f0244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -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. 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.
The nice!view will use the SDA/SCL pins of the header, 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 4` pin or "D4", 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` definition for the `&nice_view_spi` bus.
```
west build -b nice_nano_v2 -- -DSHIELD="lily58_left nice_view_adapter nice_view"

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <17>;
mosi-pin = <15>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <20>;
mosi-pin = <17>;
miso-pin = <5>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <20>;
mosi-pin = <17>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <20>;
mosi-pin = <17>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <17>;
mosi-pin = <15>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <31>;
mosi-pin = <30>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <17>;
mosi-pin = <15>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {

View file

@ -9,7 +9,7 @@ nice_view_spi: &spi0 {
sck-pin = <17>;
mosi-pin = <15>;
miso-pin = <25>;
cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
};
&pro_micro_i2c {