Kconfig.projbuild 1.4 KB

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