2016-09-27 00:30:07 +00:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2022-04-20 09:02:26 +00:00
|
|
|
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
|
|
|
|
2021-01-29 18:20:40 +00:00
|
|
|
choice BLINK_LED
|
|
|
|
prompt "Blink LED type"
|
2022-05-07 14:59:34 +00:00
|
|
|
default BLINK_LED_GPIO if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C2
|
2021-08-30 02:36:35 +00:00
|
|
|
default BLINK_LED_RMT
|
2021-01-29 18:20:40 +00:00
|
|
|
help
|
|
|
|
Defines the default peripheral for blink example
|
|
|
|
|
|
|
|
config BLINK_LED_GPIO
|
|
|
|
bool "GPIO"
|
|
|
|
config BLINK_LED_RMT
|
|
|
|
bool "RMT - Addressable LED"
|
|
|
|
endchoice
|
|
|
|
|
2019-01-25 16:10:53 +00:00
|
|
|
config BLINK_GPIO
|
|
|
|
int "Blink GPIO number"
|
2022-04-20 09:02:26 +00:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
2022-05-07 14:59:34 +00:00
|
|
|
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C2
|
2021-01-29 18:20:40 +00:00
|
|
|
default 18 if IDF_TARGET_ESP32S2
|
2021-08-16 04:11:12 +00:00
|
|
|
default 48 if IDF_TARGET_ESP32S3
|
2019-01-25 16:10:53 +00:00
|
|
|
default 5
|
|
|
|
help
|
2021-01-29 18:20:40 +00:00
|
|
|
GPIO number (IOxx) to blink on and off or the RMT signal for the addressable LED.
|
2019-01-25 16:10:53 +00:00
|
|
|
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
2016-09-27 00:30:07 +00:00
|
|
|
|
2021-01-29 18:20:40 +00:00
|
|
|
config BLINK_PERIOD
|
|
|
|
int "Blink period in ms"
|
|
|
|
range 10 3600000
|
|
|
|
default 1000
|
|
|
|
help
|
|
|
|
Define the blinking period in milliseconds.
|
|
|
|
|
2016-09-27 00:30:07 +00:00
|
|
|
endmenu
|