mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-27 18:13:44 +02:00
Add proper support for Babble illuminator LEDS
This commit is contained in:
@@ -10,16 +10,25 @@ menu "OpenIris basic configuration"
|
||||
GPIO number (IOxx) to blink on and off the LED.
|
||||
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
||||
|
||||
config SUPPORTS_EXTERNAL_LED_CONTROL
|
||||
bool "Tick if your board supports the control of external IR leds (Project Babble)"
|
||||
default false
|
||||
help
|
||||
GPIO number (IOxx) to the pin controlling the LEDs found on Babble boards.
|
||||
|
||||
config LED_C_PIN
|
||||
int "Pin number of the pin controlling the external leds (Project Babble)"
|
||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
||||
default 1
|
||||
help
|
||||
GPIO number (IOxx) to the pin controlling the LEDs found on Babble boards.
|
||||
|
||||
config BLINK_PERIOD
|
||||
int "Blink period in ms"
|
||||
range 10 3600000
|
||||
default 1000
|
||||
help
|
||||
Define the blinking period in milliseconds.
|
||||
|
||||
config ILLUMINATOR_PIN
|
||||
int "Project Babble Illuminator Pin Number"
|
||||
default 1
|
||||
|
||||
config WIRED_MODE
|
||||
bool "WIred mode"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#endif
|
||||
|
||||
#define BLINK_GPIO (gpio_num_t) CONFIG_BLINK_GPIO
|
||||
#define CONFIG_LED_C_PIN_GPIO (gpio_num_t) CONFIG_LED_C_PIN
|
||||
|
||||
static const char *TAG = "[MAIN]";
|
||||
|
||||
@@ -49,11 +50,7 @@ RestAPI restAPI("http://0.0.0.0:81", commandManager);
|
||||
UVCStreamManager uvcStream;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USE_ILLUMNATIOR_PIN
|
||||
LEDManager ledManager(BLINK_GPIO, CONFIG_ILLUMINATOR_PIN);
|
||||
#else
|
||||
LEDManager ledManager(BLINK_GPIO);
|
||||
#endif
|
||||
LEDManager ledManager(BLINK_GPIO, CONFIG_LED_C_PIN_GPIO);
|
||||
|
||||
static void initNVSStorage()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user