32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
menu "Example configuration"
|
|
choice EXAMPLE_CHIP_TYPE
|
|
prompt "Select chip type"
|
|
default EXAMPLE_TYPE_AM2301
|
|
|
|
config EXAMPLE_TYPE_DHT11
|
|
bool "DHT11"
|
|
config EXAMPLE_TYPE_AM2301
|
|
bool "DHT21/DHT22/AM2301/AM2302/AM2321"
|
|
config EXAMPLE_TYPE_SI7021
|
|
bool "Itead Si7021"
|
|
endchoice
|
|
|
|
config EXAMPLE_DATA_GPIO
|
|
int "Data GPIO number"
|
|
default 4 if IDF_TARGET_ESP8266
|
|
default 4 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C5 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32C61
|
|
default 4 if IDF_TARGET_ESP32H2
|
|
default 4 if IDF_TARGET_ESP32P4
|
|
default 17 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
|
help
|
|
GPIO number connected to DATA pin
|
|
|
|
config EXAMPLE_INTERNAL_PULLUP
|
|
bool "Enable internal pull-up resistor"
|
|
default 0
|
|
help
|
|
Check this option if you don't have external pull-up resistor on data GPIO.
|
|
DHT sensors that come mounted on a PCB generally have pull-up resistors on the data pin.
|
|
But for stable operation, it is recommended to provide an external pull-up resistor.
|
|
endmenu
|