diff --git a/components/led/Kconfig.projbuild b/components/led/Kconfig.projbuild new file mode 100644 index 0000000..e43eef7 --- /dev/null +++ b/components/led/Kconfig.projbuild @@ -0,0 +1,8 @@ +menu "Calendink LED Configuration" + + config CALENDINK_LED_GPIO + int "LED GPIO" + default 21 + help + GPIO pin for the LED. +endmenu diff --git a/components/led/led.cpp b/components/led/led.cpp index 296e8fe..d348482 100644 --- a/components/led/led.cpp +++ b/components/led/led.cpp @@ -4,8 +4,7 @@ // SDK Includes #include "led_strip.h" -// Could be a config but its the GPIO on my ESP32-S3-ETH -#define LED_GPIO GPIO_NUM_21 +#define LED_GPIO CONFIG_CALENDINK_LED_GPIO internal led_strip_handle_t led_strip; diff --git a/components/network/Kconfig.projbuild b/components/network/Kconfig.projbuild index aacd5d5..ae4ef53 100644 --- a/components/network/Kconfig.projbuild +++ b/components/network/Kconfig.projbuild @@ -1,4 +1,4 @@ -menu "CalendarInk Network Configuration" +menu "Calendink Network Configuration" config CALENDINK_WIFI_SSID string "WiFi SSID"