2016-09-26 20:30:07 -04:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2022-04-20 05:02:26 -04:00
|
|
|
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
|
|
|
|
2021-01-29 13:20:40 -05:00
|
|
|
choice BLINK_LED
|
|
|
|
prompt "Blink LED type"
|
2023-06-29 23:09:32 -04:00
|
|
|
default BLINK_LED_GPIO if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C2
|
|
|
|
default BLINK_LED_STRIP
|
2021-01-29 13:20:40 -05:00
|
|
|
help
|
2023-06-29 23:09:32 -04:00
|
|
|
Select the LED type. A normal level controlled LED or an addressable LED strip.
|
|
|
|
The default selection is based on the Espressif DevKit boards.
|
|
|
|
You can change the default selection according to your board.
|
2021-01-29 13:20:40 -05:00
|
|
|
|
|
|
|
config BLINK_LED_GPIO
|
|
|
|
bool "GPIO"
|
2023-06-29 23:09:32 -04:00
|
|
|
config BLINK_LED_STRIP
|
|
|
|
bool "LED strip"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice BLINK_LED_STRIP_BACKEND
|
|
|
|
depends on BLINK_LED_STRIP
|
|
|
|
prompt "LED strip backend peripheral"
|
|
|
|
default BLINK_LED_STRIP_BACKEND_RMT if SOC_RMT_SUPPORTED
|
|
|
|
default BLINK_LED_STRIP_BACKEND_SPI
|
|
|
|
help
|
|
|
|
Select the backend peripheral to drive the LED strip.
|
|
|
|
|
|
|
|
config BLINK_LED_STRIP_BACKEND_RMT
|
|
|
|
depends on SOC_RMT_SUPPORTED
|
|
|
|
bool "RMT"
|
|
|
|
config BLINK_LED_STRIP_BACKEND_SPI
|
|
|
|
bool "SPI"
|
2021-01-29 13:20:40 -05:00
|
|
|
endchoice
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config BLINK_GPIO
|
|
|
|
int "Blink GPIO number"
|
2022-04-20 05:02:26 -04:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
2023-01-06 02:27:19 -05:00
|
|
|
default 5 if IDF_TARGET_ESP32
|
2021-01-29 13:20:40 -05:00
|
|
|
default 18 if IDF_TARGET_ESP32S2
|
2021-08-16 00:11:12 -04:00
|
|
|
default 48 if IDF_TARGET_ESP32S3
|
2023-01-06 02:27:19 -05:00
|
|
|
default 8
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
2023-06-29 23:09:32 -04:00
|
|
|
GPIO number (IOxx) to blink on and off the LED.
|
2019-01-25 11:10:53 -05:00
|
|
|
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
2016-09-26 20:30:07 -04:00
|
|
|
|
2021-01-29 13:20:40 -05:00
|
|
|
config BLINK_PERIOD
|
|
|
|
int "Blink period in ms"
|
|
|
|
range 10 3600000
|
|
|
|
default 1000
|
|
|
|
help
|
|
|
|
Define the blinking period in milliseconds.
|
|
|
|
|
2016-09-26 20:30:07 -04:00
|
|
|
endmenu
|