This commit is contained in:
2024-08-10 16:56:40 -04:00
parent c0885a9f46
commit 11d5ae1500
15 changed files with 42 additions and 4 deletions

View File

@@ -24,14 +24,14 @@ menu "Rainmaker ESP32C3 Switch"
If the power changes, this GPIO output level will also change.
config SWITCH_LED_1
int "SYS_LED_1"
int "On-board LED-1"
default 12
help
This is an output GPIO that is connected to an on-board LED located on the right side of the board
If the power changes, this GPIO output level will also change.
config SWITCH_LED_2
int "SYS_LED_2"
int "On-board LED-2"
default 13
help
This is an output GPIO that is connected to an on-board LED located on the right side of the board

View File

@@ -24,8 +24,8 @@
/* This is the GPIO on which the power will be set */
#define OUTPUT_GPIO CONFIG_EXAMPLE_OUTPUT_GPIO
#define SYS_LED_1 CONFIG_SYS_LED_1
#define SYS_LED_2 CONFIG_SYS_LED_2
#define SYS_LED_1 CONFIG_SWITCH_LED_1
#define SYS_LED_2 CONFIG_SWITCH_LED_2
static bool g_power_state = DEFAULT_POWER;