Kconfig.projbuild 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. menu "Andreas Pool Temp Sensor Configuration"
  2. config ESP_WIFI_SSID
  3. string "WiFi SSID"
  4. default "Hemnet3"
  5. help
  6. SSID (network name) to connect to.
  7. config ESP_WIFI_PASSWORD
  8. string "WiFi Password"
  9. default "mypassword"
  10. help
  11. WiFi password (WPA or WPA2) to use.
  12. config ESP_MQTT_PASSWORD
  13. string "MQTT Password"
  14. default "mypassword"
  15. help
  16. MQTT password
  17. config ESP_MQTT_UNAME
  18. string "MQTT User"
  19. default "myuser"
  20. help
  21. MQTT Username
  22. choice BLINK_LED
  23. prompt "Blink LED type"
  24. default BLINK_LED_GPIO if IDF_TARGET_ESP32
  25. default BLINK_LED_RMT
  26. help
  27. Defines the default peripheral for blink example
  28. config BLINK_LED_GPIO
  29. bool "GPIO"
  30. config BLINK_LED_RMT
  31. bool "RMT - Addressable LED"
  32. endchoice
  33. config BLINK_GPIO
  34. int "Blink GPIO number"
  35. range 0 48
  36. default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
  37. default 18 if IDF_TARGET_ESP32S2
  38. default 48 if IDF_TARGET_ESP32S3
  39. default 5
  40. help
  41. GPIO number (IOxx) to blink on and off or the RMT signal for the addressable LED.
  42. Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
  43. config ONE_WIRE_GPIO
  44. int "OneWire GPIO number"
  45. range 0 33
  46. default 4
  47. help
  48. GPIO number (IOxx) to access One Wire Bus.
  49. Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used.
  50. GPIOs 34-39 are input-only so cannot be used to drive the One Wire Bus.
  51. config ENABLE_STRONG_PULLUP_GPIO
  52. bool "Enable strong pull-up controlled by GPIO (MOSFET)"
  53. default n
  54. help
  55. An external circuit can be used to provide a strong pull-up to the One Wire Bus.
  56. This is useful when the bus has parasitic-powered devices and extra current is
  57. required to power them, such as during temperature ADC conversions.
  58. An example of such a circuit for the ESP32 is a P-channel MOSFET (such as the BS250)
  59. connected Source-to-Drain between a current-limiting resistor (e.g. 270ohm for 12mA
  60. max at 3.3V), itself connected to VCC, and the One Wire Bus data line. The Gate is
  61. connected to the GPIO specified here.
  62. config STRONG_PULLUP_GPIO
  63. int "Strong pull-up GPIO number"
  64. range 0 33
  65. default 5
  66. help
  67. GPIO number (IOxx) to control the strong pull-up on the One Wire Bus, perhaps
  68. via a P-channel MOSFET between VCC and the One Wire Bus data line.
  69. This GPIO will be set as an output and driven high during temperature conversion.
  70. This would enable the MOSFET providing current to the devices.
  71. At all other times it will be driven low, switching off the MOSFET and allowing
  72. the One Wire Bus to operate normally.
  73. Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used.
  74. GPIOs 34-39 are input-only so cannot be used to drive the One Wire Bus.
  75. depends on ENABLE_STRONG_PULLUP_GPIO
  76. endmenu