Hello,
The DevAcademy fundamentals lesson 6, example 1 shows how to connect a bme280 to a DK.
Then in lesson 6, example 2 it shows how to connect to an onboard light sensor found on the thingy91.
I'm looking at making a third example where a bme280 is connected externally to a thingy91 using P6 found on the thingy91.
This case hinted at using pins 26 & 27 on P6.
The pin map for thingy91 shows pins 26 & 27 as SPARE3 and SPARE4, or from HW file as pins 3 and pins 4 on P6 (same spot as shown in the above case).
Looking at the thingy91_nrf9160_ns.overlay file in VS sdk v2.9.0 > Devicetree > Overlay file,
it shows p26 and p27 occupied by button0 and bh1749 respectively (same light sensor bh1749 as in lesson 6 example 2).
When adding to the overlay file,
&i2c2 { status = "okay"; pinctrl-0 = <&i2c2_default>; pinctrl-1 = <&i2c2_sleep>; pinctrl-names = "default", "sleep"; mysensor: mysensor@77{ compatible = "i2c-device"; status = "okay"; reg = < 0x77 >; }; }; &pinctrl { /omit-if-no-ref/ i2c2_default: i2c2_default { group1 { psels = <NRF_PSEL(TWIM_SCL, 0, 26)>, <NRF_PSEL(TWIM_SDA, 0, 27)>; }; }; /omit-if-no-ref/ i2c2_sleep: i2c2_sleep { group1 { psels = <NRF_PSEL(TWIM_SCL, 0, 26)>, <NRF_PSEL(TWIM_SDA, 0, 27)>; low-power-enable; }; }; };
The overlay then indicates an error that 'Multiple pin users are assigned!'.
What piece is missing here to get the pins properly mapped to P6 on thingy91?
thank-you,