diff --git a/firmware/components/led-manager/Kconfig b/firmware/components/led-manager/Kconfig index 40deb58..65ca2c4 100644 --- a/firmware/components/led-manager/Kconfig +++ b/firmware/components/led-manager/Kconfig @@ -1,4 +1,4 @@ -menu "System Control" +menu "Led Manager Configuration" config WLED_DIN_PIN int "WLED Data In Pin" default 14 @@ -10,5 +10,4 @@ menu "System Control" default 2 help The number of the status WLED pin. - endmenu diff --git a/firmware/main/Kconfig.projbuild b/firmware/main/Kconfig.projbuild new file mode 100644 index 0000000..acce9ea --- /dev/null +++ b/firmware/main/Kconfig.projbuild @@ -0,0 +1,35 @@ +menu "System Control" + menu "WiFi Configuration" + config WIFI_SSID + string "WiFi SSID" + default "YourSSID" + help + The SSID of the WiFi network to connect to. + + config WIFI_PASSWORD + string "WiFi Password" + default "YourPassword" + help + The password of the WiFi network to connect to. + + config WIFI_CONNECT_RETRIES + int "WiFi Connection Retry Attempts" + default 5 + help + Number of times to retry connecting to the WiFi network before giving up. + endmenu + + menu "Display Settings" + config DISPLAY_SDA_PIN + int "I2C SDA Pin" + default 35 + help + GPIO pin number for the SDA line of the display. + + config DISPLAY_SCL_PIN + int "I2C SCL Pin" + default 36 + help + GPIO pin number for the SCL line of the display. + endmenu +endmenu diff --git a/firmware/main/i2c_checker.h b/firmware/main/i2c_checker.h index 95d1167..270faa3 100644 --- a/firmware/main/i2c_checker.h +++ b/firmware/main/i2c_checker.h @@ -1,17 +1,12 @@ #pragma once +#include "driver/gpio.h" #include "esp_err.h" #define DISPLAY_I2C_ADDRESS 0x3C -#if defined(CONFIG_IDF_TARGET_ESP32S3) -#define I2C_MASTER_SDA_PIN GPIO_NUM_35 -#define I2C_MASTER_SCL_PIN GPIO_NUM_36 -#else -/// just dummy pins, because of compile check -#define I2C_MASTER_SDA_PIN GPIO_NUM_20 -#define I2C_MASTER_SCL_PIN GPIO_NUM_21 -#endif +#define I2C_MASTER_SDA_PIN ((gpio_num_t)CONFIG_DISPLAY_SDA_PIN) +#define I2C_MASTER_SCL_PIN ((gpio_num_t)CONFIG_DISPLAY_SCL_PIN) #ifdef __cplusplus extern "C"