Configure I2C or SPI peripheral communication and debug bus-level issues
Scanned 9/3/2026
Install to Claude Code
npx -y skills add black141312/ada --skill i2c-spi --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of I2c Spi?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/black141312-i2c-spi)More formats (shields.io, HTML) on the badges page.
---
name: i2c-spi
description: Configure I2C or SPI peripheral communication and debug bus-level issues
category: gamedev
---
# I2C / SPI
Reach for this when talking to a sensor, EEPROM, or display over I2C or SPI and the link is not working yet.
1. From the datasheet get the device address (I2C) or CS pin + SPI mode (CPOL/CPHA) and max clock rate.
2. Configure pins: I2C needs open-drain SDA/SCL with pull-ups; SPI needs MOSI/MISO/SCK plus a GPIO chip-select.
3. Set the bus clock below the device max, then do a probe: I2C address ACK scan, or SPI read of a known ID register.
4. Implement a transfer: I2C start→addr+R/W→data→stop; SPI assert CS→full-duplex byte exchange→deassert CS.
5. Add per-transfer timeouts and check ACK/error flags; return an error instead of hanging on a missing device.
6. Verify with a logic analyzer if the first transfer fails — confirm clock, framing, and ACK on the wire.
## Rules
- I2C requires pull-up resistors on SDA and SCL; floating lines look like a dead bus.
- Match SPI mode (CPOL/CPHA) exactly to the device; a wrong mode gives garbage with no error flag.
- Toggle chip-select per transaction and honor setup/hold timing; sharing CS or wrong polarity corrupts reads.
- Respect register auto-increment and burst-read rules; many devices need a specific address-then-read sequence.
- On a stuck I2C bus (SDA held low), clock out up to 9 pulses or power-cycle the device to recover.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.