zephyr/samples/sensor
Martí Bolívar 24260e6c3a samples: bme280: enable the appropriate bus by default
I personally don't find it very useful to have to maintain prj.conf
and prj_spi.conf for this sample. The information we need to make
this application "just work" with regards to the bus is available in
the devicetree, and Kconfig can now access it using
dt_compat_on_bus().

Do so, enabling I2C and SPI appropriately when a sensor of the right
type is on either of those buses.

If no sensors are enabled, the user gets the build-time error message
in main.c about no devices being found.

This approach is prone to the "stuck symbol" Kconfig problem covered
in our documentation, so a pristine build is necessary to change the
default settings from a previous build.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-04-14 10:38:10 -05:00
..
adt7420
adxl362
adxl372
amg88xx
ams_iAQcore
apds9960
bme280
bme680
bmg160
bmm150
bq274xx
ccs811
dht
ens210
fxas21002
fxos8700
fxos8700-hid
grove_light
grove_temperature
hmc5883l
hts221
isl29035
lis2dh
lps22hb
lps22hh
lsm6dsl
lsm303dlhc
magn_polling
max30101
max44009
mcp9808
mpu6050
ms5837
sensor_shell
sht3xd
sx9500
th02
thermometer
ti_hdc
tmp112
tmp116
vl53l0x
sensor.rst