samples: bme280: nrf52840 DK: set LSB in i2c addr
The nrf52840-DK doesn't have this sensor built-in, so it's likely users will be getting this sensor from a breakout board. The ones that Sparkfun and Adafruit sell pull up the LSB address pin, so the default address is 0x77 on those boards. Let's follow along with them instead of using 0x76, because those are the boards that come up first in the results when you google "BME280 breakout board" from where I'm sitting. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
18ba133dcb
commit
06d50c673d
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
&i2c0 {
|
&i2c0 {
|
||||||
bme280@76 {
|
bme280@77 {
|
||||||
compatible = "bosch,bme280";
|
compatible = "bosch,bme280";
|
||||||
reg = <0x76>;
|
reg = <0x77>;
|
||||||
label = "BME280";
|
label = "BME280";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue