menu config

This commit is contained in:
2024-08-10 16:26:17 -04:00
parent 9d186cd89f
commit ccd0505049
2 changed files with 12 additions and 5 deletions

View File

@@ -12,7 +12,7 @@
"idf.openOcdConfigs": [ "idf.openOcdConfigs": [
"board/esp32c3-ftdi.cfg" "board/esp32c3-ftdi.cfg"
], ],
"idf.portWin": "COM32", "idf.portWin": "COM35",
"idf.pythonBinPathWin": "c:\\Users\\alex\\.espressif\\tools\\python_env\\idf5.2_py3.11_env\\Scripts\\python.exe", "idf.pythonBinPathWin": "c:\\Users\\alex\\.espressif\\tools\\python_env\\idf5.2_py3.11_env\\Scripts\\python.exe",
"idf.toolsPathWin": "c:\\Users\\alex\\.espressif\\tools", "idf.toolsPathWin": "c:\\Users\\alex\\.espressif\\tools",
"idf.gitPathWin": "c:\\Users\\alex\\.espressif\\tools\\tools\\idf-git\\2.39.2\\cmd\\git.exe", "idf.gitPathWin": "c:\\Users\\alex\\.espressif\\tools\\tools\\idf-git\\2.39.2\\cmd\\git.exe",

View File

@@ -1,4 +1,4 @@
menu "Example Configuration" menu "Rainmaker ESP32C3 Smart Switch"
config EXAMPLE_BOARD_BUTTON_GPIO config EXAMPLE_BOARD_BUTTON_GPIO
int "Boot Button GPIO" int "Boot Button GPIO"
@@ -16,11 +16,18 @@ menu "Example Configuration"
push button will trigger a parameter notification {"Switch":{"Power":true}} and turning off will push button will trigger a parameter notification {"Switch":{"Power":true}} and turning off will
trigger an alert "Switch was turned off". trigger an alert "Switch was turned off".
config EXAMPLE_OUTPUT_GPIO config LED_RIGHT_GPIO
int "Output GPIO" int "Output GPIO"
default 19 default 12
help help
This is an output GPIO that will be connected to a relay or other driver circuit in most cases. This is an output GPIO that is connected to an on-board LED located on a right side to the USB-C port.
If the power changes, this GPIO output level will also change.
config LED_LEFT_GPIO
int "Output GPIO"
default 13
help
This is an output GPIO that is connected to an on-board LED located on a right side to the USB-C port.
If the power changes, this GPIO output level will also change. If the power changes, this GPIO output level will also change.
endmenu endmenu