2016-09-26 20:30:07 -04:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2021-01-29 13:20:40 -05:00
|
|
|
choice BLINK_LED
|
|
|
|
prompt "Blink LED type"
|
2021-08-29 22:36:35 -04:00
|
|
|
default BLINK_LED_GPIO if IDF_TARGET_ESP32
|
|
|
|
default BLINK_LED_RMT
|
2021-01-29 13:20:40 -05:00
|
|
|
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_LED_RMT_CHANNEL
|
|
|
|
depends on BLINK_LED_RMT
|
|
|
|
int "RMT Channel"
|
|
|
|
range 0 7
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Set the RMT peripheral channel.
|
|
|
|
ESP32 RMT channel from 0 to 7
|
|
|
|
ESP32-S2 RMT channel from 0 to 3
|
2021-04-06 07:32:21 -04:00
|
|
|
ESP32-S3 RMT channel from 0 to 3
|
2021-01-29 13:20:40 -05:00
|
|
|
ESP32-C3 RMT channel from 0 to 1
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config BLINK_GPIO
|
|
|
|
int "Blink GPIO number"
|
2021-04-06 07:32:21 -04:00
|
|
|
range 0 48
|
2021-08-29 22:36:35 -04:00
|
|
|
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
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
|
2019-01-25 11:10:53 -05:00
|
|
|
default 5
|
|
|
|
help
|
2021-01-29 13:20:40 -05:00
|
|
|
GPIO number (IOxx) to blink on and off or the RMT signal for the addressable 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
|