Kconfig 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. menu "IoT Button"
  2. config BUTTON_PERIOD_TIME_MS
  3. int "BUTTON PERIOD TIME (MS)"
  4. range 2 20
  5. default 5
  6. help
  7. "Button scan interval"
  8. config BUTTON_DEBOUNCE_TICKS
  9. int "BUTTON DEBOUNCE TICKS"
  10. range 1 8
  11. default 2
  12. help
  13. "One CONFIG_BUTTON_DEBOUNCE_TICKS equal to CONFIG_BUTTON_PERIOD_TIME_MS"
  14. config BUTTON_SHORT_PRESS_TIME_MS
  15. int "BUTTON SHORT PRESS TIME (MS)"
  16. range 50 800
  17. default 180
  18. config BUTTON_LONG_PRESS_TIME_MS
  19. int "BUTTON LONG PRESS TIME (MS)"
  20. range 500 5000
  21. default 1500
  22. config BUTTON_LONG_PRESS_TOLERANCE_MS
  23. int "BUTTON LONG PRESS TOLERANCE TIME (MS)"
  24. default 20
  25. config BUTTON_SERIAL_TIME_MS
  26. int "BUTTON SERIAL TIME (MS)"
  27. range 2 1000
  28. default 20
  29. help
  30. "Serial trigger interval"
  31. config ADC_BUTTON_MAX_CHANNEL
  32. int "ADC BUTTON MAX CHANNEL"
  33. range 1 5
  34. default 3
  35. help
  36. "Maximum number of channels for ADC buttons"
  37. config ADC_BUTTON_MAX_BUTTON_PER_CHANNEL
  38. int "ADC BUTTON MAX BUTTON PER CHANNEL"
  39. range 1 10
  40. default 8
  41. help
  42. "Maximum number of buttons per channel"
  43. config ADC_BUTTON_SAMPLE_TIMES
  44. int "ADC BUTTON SAMPLE TIMES"
  45. range 1 4
  46. default 1
  47. help
  48. "Number of samples per scan"
  49. endmenu