MCU (Embbeded) 시스템에 Button 입력 처리는 아래의 github에 코드를 참조하면 도움이 됩니다.
github : https://github.com/taraskornuta/Button
This is a high-level abstraction layer library which provides easy to use driver to handle simple signal buttons connected directly to MCU GPIO.
The library is provide:
- Up to 255 buttons handling
- Buttons debounce filtering
- Single short press handling
- Single long press handling
- Short release button callback function
- Long press button callback function
- Long release button callback function
'프로그래밍 > STM32' 카테고리의 다른 글
STM32 GPIO 설정 (Configuration) (0) | 2023.07.18 |
---|---|
Free RTOS (Timer) Example (0) | 2023.07.13 |
Free RTOS (Message Queue) Example (0) | 2023.07.12 |