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
|
config WLED_DIN_PIN
|
||||||
int "WLED Data In Pin"
|
int "WLED Data In Pin"
|
||||||
default 14
|
default 14
|
||||||
@@ -10,5 +10,4 @@ menu "System Control"
|
|||||||
default 2
|
default 2
|
||||||
help
|
help
|
||||||
The number of the status WLED pin.
|
The number of the status WLED pin.
|
||||||
|
|
||||||
endmenu
|
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
|
#pragma once
|
||||||
|
|
||||||
|
#include "driver/gpio.h"
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
|
|
||||||
#define DISPLAY_I2C_ADDRESS 0x3C
|
#define DISPLAY_I2C_ADDRESS 0x3C
|
||||||
|
|
||||||
#if defined(CONFIG_IDF_TARGET_ESP32S3)
|
#define I2C_MASTER_SDA_PIN ((gpio_num_t)CONFIG_DISPLAY_SDA_PIN)
|
||||||
#define I2C_MASTER_SDA_PIN GPIO_NUM_35
|
#define I2C_MASTER_SCL_PIN ((gpio_num_t)CONFIG_DISPLAY_SCL_PIN)
|
||||||
#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
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
|
Reference in New Issue
Block a user