Kconfig.projbuild 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_STRIP
  7. help
  8. Select the LED type. A normal level controlled LED or an addressable LED strip.
  9. The default selection is based on the Espressif DevKit boards.
  10. You can change the default selection according to your board.
  11. config BLINK_LED_GPIO
  12. bool "GPIO"
  13. config BLINK_LED_STRIP
  14. bool "LED strip"
  15. endchoice
  16. choice BLINK_LED_STRIP_BACKEND
  17. depends on BLINK_LED_STRIP
  18. prompt "LED strip backend peripheral"
  19. default BLINK_LED_STRIP_BACKEND_RMT if SOC_RMT_SUPPORTED
  20. default BLINK_LED_STRIP_BACKEND_SPI
  21. help
  22. Select the backend peripheral to drive the LED strip.
  23. config BLINK_LED_STRIP_BACKEND_RMT
  24. depends on SOC_RMT_SUPPORTED
  25. bool "RMT"
  26. config BLINK_LED_STRIP_BACKEND_SPI
  27. bool "SPI"
  28. endchoice
  29. config BLINK_GPIO
  30. int "Blink GPIO number"
  31. range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
  32. default 5 if IDF_TARGET_ESP32
  33. default 18 if IDF_TARGET_ESP32S2
  34. default 48 if IDF_TARGET_ESP32S3
  35. default 8
  36. help
  37. GPIO number (IOxx) to blink on and off the LED.
  38. Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
  39. config BLINK_PERIOD
  40. int "Blink period in ms"
  41. range 10 3600000
  42. default 1000
  43. help
  44. Define the blinking period in milliseconds.
  45. endmenu