mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
menu "Example Configuration"
|
|
|
|
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
|
|
|
choice BLINK_LED
|
|
prompt "Blink LED type"
|
|
default BLINK_LED_GPIO if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C2
|
|
default BLINK_LED_RMT
|
|
help
|
|
Defines the default peripheral for blink example
|
|
|
|
config BLINK_LED_GPIO
|
|
bool "GPIO"
|
|
config BLINK_LED_RMT
|
|
bool "RMT - Addressable LED"
|
|
endchoice
|
|
|
|
config BLINK_GPIO
|
|
int "Blink GPIO number"
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
|
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H4 || IDF_TARGET_ESP32C2
|
|
default 18 if IDF_TARGET_ESP32S2
|
|
default 48 if IDF_TARGET_ESP32S3
|
|
default 5
|
|
help
|
|
GPIO number (IOxx) to blink on and off or the RMT signal for the addressable LED.
|
|
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
|
|
|
config BLINK_PERIOD
|
|
int "Blink period in ms"
|
|
range 10 3600000
|
|
default 1000
|
|
help
|
|
Define the blinking period in milliseconds.
|
|
|
|
endmenu
|