Kconfig.projbuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. menu "Example Configuration"
  2. orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
  3. choice BLINK_LED
  4. prompt "Blink LED type"
  5. default BLINK_LED_GPIO if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C2
  6. default BLINK_LED_RMT
  7. help
  8. Defines the default peripheral for blink example
  9. config BLINK_LED_GPIO
  10. bool "GPIO"
  11. config BLINK_LED_RMT
  12. bool "RMT - Addressable LED"
  13. endchoice
  14. config BLINK_GPIO
  15. int "Blink GPIO number"
  16. range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
  17. default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C2
  18. default 18 if IDF_TARGET_ESP32S2
  19. default 48 if IDF_TARGET_ESP32S3
  20. default 5
  21. help
  22. GPIO number (IOxx) to blink on and off or the RMT signal for the addressable LED.
  23. Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
  24. config BLINK_PERIOD
  25. int "Blink period in ms"
  26. range 10 3600000
  27. default 1000
  28. help
  29. Define the blinking period in milliseconds.
  30. endmenu