zephyr/drivers/sensor/aosong/dht20/Kconfig

27 lines
658 B
Plaintext

# AOSONG DHT20 temperature and humidity sensor configuration options
# This driver can also be used for AHT20 or AM2301B which seem to be the same sensor
# Copyright (c) 2024 Nathan Olff
# SPDX-License-Identifier: Apache-2.0
config DHT20
bool "DHT20 / AHT20 / AM2301B Temperature and Humidity Sensor"
default y
depends on DT_HAS_AOSONG_DHT20_ENABLED \
|| DT_HAS_AOSONG_AHT20_ENABLED \
|| DT_HAS_AOSONG_AM2301B_ENABLED
select I2C
help
Enable driver for DHT20 / AHT20 / AM2301B temperature and humidity sensors.
if DHT20
config DHT20_CRC
bool "Use CRC error detection"
default n
select CRC
help
Verify CRC byte in RX data
endif # DHT20