AMG you will need to define an .overlay
file that has the e-paper display within it. For instance it should look similar to what the external flash definition looks like for the nRF9160 Feather:
compatible = "nordic,nrf-spim";
status = "okay";
sck-pin = < 11 >;
mosi-pin = < 9 >;
miso-pin = < 28 >;
cs-gpios = < &gpio0 7 GPIO_ACTIVE_LOW >;
w25q32jv: w25q32jv@0 {
compatible = "jedec,spi-nor";
label = "W25Q32JV";
reg = < 0 >;
spi-max-frequency = < 40000000 >;
wp-gpios = < &gpio0 8 GPIO_ACTIVE_LOW >;
hold-gpios = < &gpio0 10 GPIO_ACTIVE_LOW >;
size = < 0x2000000 >;
has-dpd;
t-enter-dpd = < 3000 >;
t-exit-dpd = < 30000 >;
jedec-id = [ ef 40 16 ];
};
};
You’ll have to obviously match your .overlay
to match the DTS binding. Sounds like you may already have a working configuration so I would steal from that overlay if there is one. If your project doesn’t have boards/circuitojo_feather_nrf9160ns.overlay
you may need to make one and make your edits there. You’ll have to rebuild with the -p
flag when you add a new overlay.
Also it’s important to note that P0.30/D3 P0.29/D2 are connected to the accelerometer in newer versions. The accelerometer has push/pull outputs so that may cause issues if you want to use them elsewhere (unless you cut the jumpers)
P0.13/A0 is also used for switching the power supply mode. Again you can cut the jumper here if you don’t need that functionality.
(Side note: P0.XX refers to the pin number on the nRF9160. The /XX refers to the labeled pins on the board)