# Gpio

> gpio

- Skill: `lingaom/gpio` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add lingaom/gpio`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lingaom/gpio/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: LingaoM (https://skillmd.com/u/lingaom)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/lingaom/gpio

---

# gpio

Unified GPIO skill. All LED and button operations go through this skill.
tools: tool_exec({"tool":"gpio","args":{...}})

## Actions

### read
Read the current level of a GPIO pin.
- `pin`: `led0`, `led1`, or `button0`

Example: `{"tool":"gpio","args":{"action":"read","pin":"led0"}}`

### write
Set the output level of a GPIO pin.
- `pin`: `led0` or `led1`
- `value`: `0` (off) or `1` (on)

Example: `{"tool":"gpio","args":{"action":"write","pin":"led0","value":1}}`

### blink
Blink LED0 N times with a 300ms on/off cycle.
- `count` (optional): number of blinks, 1–20, default 3

Example: `{"tool":"gpio","args":{"action":"blink","count":5}}`

### sos
Transmit SOS morse code (`... --- ...`) on LED0.
No additional arguments required.

Example: `{"tool":"gpio","args":{"action":"sos"}}`

