完成了WIFI连接,MQTT订阅发布,光照监测,温湿度数据,继电器控制
This commit is contained in:
31
main/Kconfig.projbuild
Normal file
31
main/Kconfig.projbuild
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in New Issue
Block a user