embedded-input-libs
Skill36 starsChanged 5 months agoMITView on GitHub
Use when integrating, porting, configuring, or debugging embedded button/input libraries such as MultiButton or FlexibleButton
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-library-entrySkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-serial-log-debugSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- flashdb-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- gnss-gps-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- letter-shell-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- miniz-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill for button and simple input libraries such as MultiButton and FlexibleButton.
- Distinctive: line 14
Use this skill when:
- Distinctive: line 19
Do not use this skill for complex UI frameworks or touch/display systems.
- Distinctive: line 45
Test with measured input. Compare software events with a logic analyzer or GPIO trace when behavior is unclear.
- Distinctive: line 58
Before claiming input handling works:
- Distinctive: line 61
Test press, release, click, long press, repeated press, and bounce.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Confirm electrical polarity. Active-low buttons with pull-ups are common; software level must match hardware.
- Choose a stable scan period. Debounce and click timing depend on the scan tick being regular.
- Keep callbacks lightweight. Button callbacks should post events or set flags, not block or write flash.
- Define event semantics. Decide whether long press also emits click, whether double click suppresses single click, and when release fires.
- 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:
MultiButton 长按会同时触发单击。Agent:
- Asks for scan period, event configuration, active level, and expected semantics.
- Checks whether single click is delayed until double/long decision is known.
- Verifies event order with a controlled press-duration test.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

