embedded-input-libs

embedded-input-libs is a skill for Claude Code, Codex from easyzoom/aix-skills. It costs 27 tokens per session (574 once invoked), scanned A, original, MIT.

Guidance for adding and debugging libraries that read physical buttons and simple inputs on embedded devices. It covers how the hardware signal and software event handling should work together.

In plain words
What is it for?
Use it when working with MultiButton, FlexibleButton, button scanning, press and release events, clicks, double-clicks, long presses, holds, repeats, or button callbacks.
Why use it?
It helps explain problems such as double-triggered presses, missed long presses, wrong event order, or different behavior between circuit boards.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/easyzoom/aix-skills/embedded-input-libs
Any agent
npx skills add easyzoom/aix-skills --skill embedded-input-libs
Clone the repo
git clone --depth 1 https://github.com/easyzoom/aix-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for embedded-input-libs

README.md
[![agentmods](https://agentmods.dev/badge/skills/easyzoom/aix-skills/embedded-input-libs.svg)](https://agentmods.dev/skills/easyzoom/aix-skills/embedded-input-libs)
Your own site
<a href="https://agentmods.dev/skills/easyzoom/aix-skills/embedded-input-libs"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/embedded-input-libs.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00574
Opus 5 $0.00014 $0.00287
Sonnet 5 $0.00005 $0.00115
Haiku 4.5 $0.00003 $0.00057

Measured 6d ago against content hash b98f4041088b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

embedded-input-libs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/embedded-input-libs/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

  2. Choose a stable scan period. Debounce and click timing depend on the scan tick being regular.

  3. Keep callbacks lightweight. Button callbacks should post events or set flags, not block or write flash.

  4. Define event semantics. Decide whether long press also emits click, whether double click suppresses single click, and when release fires.

  5. 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

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 78 lines · 27 tokens per session scan A b98f4041088b

Subscribe to this mod's changes

embedded-input-libs is a skill published in the GitHub repository easyzoom/aix-skills (31 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 574 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

container-home

Answer questions, assist with planning, and help with design decisions for Mick's off-grid shipping container lake home project. Trigger when the user mentions the container home, lake home, Stewart County, LBL, the expansion, solar system, septic permitting, or retirement property.

mickpletcher/AI-Skills · 57 tokens

digital-twin-sync

Synchronize construction digital twins with real-time data. Connect BIM models with IoT sensors, progress updates, and field data for live project visualization and monitoring.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 36 tokens

drone-site-survey

Process drone survey data for construction sites. Generate orthomosaics, DEMs, point clouds, calculate volumes, track progress, and integrate with BIM models for comparison.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 40 tokens

equipment-fleet-manager

Manage construction equipment fleet. Track utilization, maintenance, and assignments.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 18 tokens

json-parser

Parse and validate JSON data from construction APIs, IoT sensors, and BIM exports. Transform nested JSON to flat DataFrames.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 28 tokens

energy-efficiency

Audit a manufacturing energy management system for monitoring quality, cost optimization, and compliance. Triggers: building or reviewing industrial energy platforms, building management systems, or sustainability reporting tools.

tinh2/skills-hub-registry · 39 tokens