This commit is contained in:
2024-09-01 02:20:14 -04:00
parent a4c3c5e58d
commit 6287481695
15 changed files with 1497 additions and 527 deletions

View File

@@ -152,8 +152,38 @@ Bare-bones ESP32 module can be programmed via UART interface (`GPIO03` and `GPIO
### ESP-IDF Framework
_Configuration menu custom variables
_Configuration menu custom variables_
_Kconfig.projbuild_ file contains custom menu configuration for setting user-defined variables such as button GPIO, device description, etc._
``` text
menu "Example Configuration"
config EXAMPLE_BOARD_BUTTON_GPIO
int "Boot Button GPIO"
default 9 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C6
default 0
help
GPIO number on which the "Boot" button is connected. This is generally used
by the application for custom operations like toggling states, resetting to defaults, etc.
config EXAMPLE_ENABLE_TEST_NOTIFICATIONS
bool "Test Notifications"
default n
help
Enable this option to test mobile push notifications. When enabled, turning on the switch using
push button will trigger a parameter notification {"Switch":{"Power":true}} and turning off will
trigger an alert "Switch was turned off".
config EXAMPLE_OUTPUT_GPIO
int "Output GPIO"
default 19
help
This is an output GPIO that will be connected to a relay or other driver circuit in most cases.
If the power changes, this GPIO output level will also change.
endmenu
```
## Temperature Node. The Key Elements and Components