embedded-input-libs
/embedded-input-libs
Use when integrating, porting, configuring, or debugging embedded button/input libraries such as MultiButton or FlexibleButton
- Author
- easyzoom ↗
- Repository
- aix-skills ↗
- Licence
- MIT
- Last repository change
- 17.07.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 17.07.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when integrating, porting, configuring, or debugging embedded button/input libraries such as MultiButton or FlexibleButton
Original author description
Use when integrating, porting, configuring, or debugging embedded button/input libraries such as MultiButton or FlexibleButton
How it works
- Overview
- When To Use
- First Questions
- Integration Checklist
- Common Failures
- Verification
- Example
SKILL.md preview
--- name: embedded-input-libs description: Use when integrating, porting, configuring, or debugging embedded button/input libraries such as MultiButton or FlexibleButton --- # Embedded Input Libs ## Overview Use this skill for button and simple input libraries such as MultiButton and FlexibleButton. The key is to align scan period, debounce time, electrical polarity, event semantics, and callback context. ## When To Use Use this skill when: - The user wants to add or debug MultiButton, FlexibleButton, key scanning, long press, double click, or button event callbacks. - Inputs bounce, trigger twice, miss long presses, fire in the wrong order, or behave differently across boards. Do not use this skill for complex UI frameworks or touch/display systems. Use LVGL-related skills when UI event routing dominates. ## First Questions Ask for: - Library: MultiButton, FlexibleButton, or custom button helper. - Button circuit: pull-up/pull-down, active level, GPIO mode, external RC, matrix, or direct GPIO. - Scan period and where scanning runs: timer, main loop, RTOS task, or interrupt. - Desired events: press, release, click, double click, long press, repeat, hold. - Current symptom and logic analyzer or GPIO trace if available. ## Integration Checklist 1. Confirm electrical polarity. Active-low buttons with pull-ups are common; software level must match hardware. 1. Choose a stable scan period. Debounce and click timing depend on the scan tick being regular. 1. Keep callbacks lightweight. Button callbacks should post events or set flags, not block or write flash. 1. Define event semantics. Decide whether long press also emits click, whether double click suppresses single click, and when release fires. 1. Test with measured input. Compare software events with a logic analyzer or GPIO trace when behavior is unclear. ## Common Failures - Wrong active level makes pressed and released inverted. - Scan period jitter breaks double-click detection. - Long press also triggers unwanted single click. - Callback runs in timer/ISR context and blocks. - Shared button state is accessed from multiple tasks without protection. ## Verification Before claiming input handling works: - State active level, scan period, debounce time, and callback context. - Test press, release, click, long press, repeated press, and bounce. - Confirm event order matches product expectations. - Confirm no flash writes or blocking operations occur in unsafe context. ## Example User: ```text MultiButton 长按会同时触发单击。 ``` Agent: 1. Asks for scan period, event configuration, active level, and expected semantics. 1. Checks whether single click is delayed until double/long decision is known. 1. Verifies event order with a controlled press-duration test.
Versions
The database has no other skills named embedded-input-libs.
Database snapshot: 13.11.2026 · package version 7fdb12927ea3 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100embedded-buffer-queue-libs
Use when integrating, porting, configuring, or debugging embedded ring buffers, circular buffers, FIFO queues, Ring-Buffer, or QueueForMcu libraries - 100embedded-timing-libs
Use when integrating, porting, configuring, or debugging embedded software timer libraries such as MultiTimer, timeout schedulers, or tick-based callback timers - 95build-agent-embedded
C/C++ build agent for embedded systems, firmware, and MCU projects. Extends build-agent with embedded constraints. Use when building firmware, bare-metal code, or resource-constrained systems. - 95embedded-c-coding
嵌入式C语言编码规范,适用于安全关键嵌入式系统。强制执行OOP设计模式、内存安全、线程安全、硬件交互规则和强制的编辑后安全审查。在编写、修改或审查C代码、嵌入式固件、驱动、HAL代码、RTOS任务或任何运行在嵌入式平台上的代码时使用此Skill。当用户提到C语言、嵌入式系统、MCU、STM32、驱动、外设或固件开发时也会触发。 - 100embedded-best-practices
Embedded systems development best practices for ESP32, FreeRTOS, and ESP-IDF. Use when writing firmware code, reviewing implementations, or learning about embedded patterns. - 95reap-07-firmware-and-embedded
REA prompt pack: Firmware & embedded (3 ready-to-paste prompts). Use when doing reverse-engineering investigation of firmware & embedded with REA (rea.tools) via an AI coding agent.