This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Starterware/EK-TM4C123GXL:使用计时器支持去抖功能的 GPIO 按钮示例。`

Guru**** 1839620 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/584224/starterware-ek-tm4c123gxl-gpio-push-button-example-with-debounce-support-using-timer

器件型号:EK-TM4C123GXL

工具/软件:Starterware

您好!

您能不能为我提供支持去抖功能的 GPIO 按钮示例代码(使用计时器)

我参考过这篇文章、只需按一下即可获得多个按钮。

如果有,您可以支持或向我提供示例吗?

感谢您的支持。

此致、

Titus S.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    在 Tiva/EK-TM4CGXL/drivers/button.c 文件中、您有一个键去抖示例、其中去抖是在计时器- SysTimer 中断内完成的。 如果不满足,您可以谷歌搜索关键字“去抖”,有许多用 C 语言编写的示例