more kconfig options
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -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
|
||||
|
35
firmware/main/Kconfig.projbuild
Normal file
35
firmware/main/Kconfig.projbuild
Normal file
@@ -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
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user