Logo di Esp32 Pin Audit

Esp32 Pin Audit

Community
agodianel
esp32-pin-audit

Audits GPIO assignments in ESP32-family firmware against the verified pin facts of the actual target chip and board, flagging flash/PSRAM pins, strapping pins, input-only pins, USB-Serial-JTAG and UART0 console pins, JTAG pins, ADC2/Wi-Fi conflicts, double assignments and pin-map drift. Use when the user asks "which pins can I use", "is GPIO 12 safe", "check my pinout", "pin conflict", "strapping pin", "board won't boot after wiring", "can't flash after connecting a sensor", "ADC2 with Wi-Fi", "input-only pin", "/pin-audit", or before adding any GPIO, I2C, SPI, UART, ADC or LEDC code on ESP32, ESP32-S2, ESP32-S3, ESP32-C2, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-H2 or ESP32-P4.

Panoramica

Pubblicato daagodianel
Repositoryesp32-claude-workbench
Nome della skillesp32-pin-audit
Stelle
81
Fork
7
File inclusi
5
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 5

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da agodianel su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Esp32 Pin Audit in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-pin-audit
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agodianel/esp32-claude-workbench.git /tmp/esp32-claude-workbench
mkdir -p .claude/skills
cp -r /tmp/esp32-claude-workbench/skills/esp32-pin-audit .claude/skills/esp32-pin-audit
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Esp32 Pin Audit in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Esp32 Pin Audit non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Esp32 Pin Audit non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

ESP32 Pin Audit

Pin rules are chip-specific. GPIO 6–11 are flash pins on classic ESP32 but ordinary GPIOs on ESP32-S3; GPIO 34–39 are input-only on classic ESP32 but bidirectional on ESP32-S3. Never apply one chip's table to another.

Tools

If the esp32-workbench MCP server is connected, call its tools; otherwise run the CLI. If esp32wb is not on PATH, use uvx --from git+https://github.com/agodianel/esp32-claude-workbench esp32wb <args>. Add --json for machine-readable output.

NeedMCP toolCLI
Audit all GPIO usage (target auto-detected from CONFIG_IDF_TARGET)pin_auditesp32wb pins <path> [--target T]
Verified pin facts + Espressif source linkschip_infoesp32wb chip <target> (no arg lists targets)
Anything the chip table does not coversearch_esp_docsesp32wb docs search "<query>" --target T

Targets: esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c6 esp32h2 esp32p4.

Steps

1. Establish target, module and board

  • Target from CONFIG_IDF_TARGET in sdkconfig / sdkconfig.defaults. If none is set, ESP-IDF defaults to esp32; state that assumption in the report.
  • Module/variant matters: flash and PSRAM type (quad vs octal, in-package vs external) change which pins are reserved. Check CONFIG_SPIRAM* and CONFIG_ESPTOOLPY_OCT_FLASH / octal PSRAM settings.
  • Board: if a profile exists (see References below), use it. Otherwise ask for the schematic. On-board peripherals (LEDs, buttons, displays, power-management chips) occupy pins even if the code never mentions them.

2. Run the audit tool

esp32wb pins . — it collects GPIO_NUM_*, #define *_PIN/_GPIO, Kconfig GPIO options and driver config structs, then checks them against the chip table. Include its findings verbatim; add your own analysis on top.

If the tool is unavailable, collect manually:

bash
grep -rnE "GPIO_NUM_[0-9]+|#define\s+\w*(GPIO|PIN|SDA|SCL|MOSI|MISO|SCLK|CLK|CS|TX|RX)\w*\s+[0-9]+" \
  --include=*.c --include=*.h --include=*.cpp .
grep -rn "CONFIG_.*\(GPIO\|PIN\)" sdkconfig sdkconfig.defaults* 2>/dev/null

and get the chip facts from esp32wb chip <target> or the Espressif datasheet.

3. Check every pin against the chip's categories

For each GPIO in use, look up the target's facts and classify:

CategorySeverityWhat to check
Not a GPIO on this chipERRORNumber missing from the chip's GPIO list (e.g. S3 has no GPIO22–25)
Flash SPI pinsERRORNever use. Set differs per chip
PSRAM pinsERROR if PSRAM enabledIncludes octal-mode extras on S3
Input-onlyERROR if used as output or with internal pullsClassic ESP32: 34–39 (no internal pulls). S2: GPIO46. S3/C-series: none
StrappingWARNExternal circuits must not force the wrong level at reset; note the boot function
USB D-/D+ (USB-Serial-JTAG / OTG)WARNReusing them disables USB console/JTAG/flashing over USB. Present on S2/S3/C3/C5/C6/H2/P4
UART0 console TX/RXWARNBreaks logs/flashing over UART unless the console is moved
JTAG pinsWARN if hardware debugging is used
ADC2 + Wi-Fisee below

4. ADC2 and Wi-Fi (chip-dependent)

  • Classic ESP32: ADC2 pins cannot be used while Wi-Fi is in use — ERROR. Move analog inputs to ADC1.
  • ESP32-S2 / ESP32-S3: ADC2 is shared with Wi-Fi and the driver arbitrates; adc_oneshot_read() can fail (returns an error) while Wi-Fi holds ADC2 — WARN, require retry/error handling or move to ADC1.
  • ESP32-C3: ADC2 (GPIO5) oneshot is no longer supported by current ESP-IDF due to a hardware erratum — flag any ADC2 use regardless of Wi-Fi.
  • Other chips: check esp32wb chip <target> (field "ADC2 + Wi-Fi" and notes) — several have no ADC2 at all.

5. Conflicts and electrical checks

  • Same GPIO assigned to two functions (including board-fixed functions).
  • Buses sharing pins unintentionally (I2C vs SPI vs UART).
  • I2C lines: external pull-ups required; internal pull-ups are too weak for reliable I2C. Flag configs relying only on *_pullup_en.
  • Floating inputs: buttons/sensors without external or internal pull.
  • Voltage domain: some pins run at the flash/PSRAM voltage on 1.8 V parts (e.g. ESP32-S3 GPIO47/48 on R8V/R16V variants) — check esp32wb chip.

6. Documentation drift

Compare code against pin_map.h, README pin tables, board profile and schematic. Every assignment must appear in one documented pin map (project rule).

Report

markdown
# Pin Audit — <project> (target: <chip>, board: <board>, module: <module>)
Evidence: `esp32wb pins` output + `esp32wb chip <target>` sources.

## Pin Allocation
| GPIO | Function | Defined in | Direction | Pull | Chip category |
## Errors (must fix)
## Warnings (strapping / USB / console / JTAG / ADC2)
## Conflicts
## Documentation drift
## Unknowns (facts not confirmed for this chip/board)

Use plain words (ERROR, WARN, OK) rather than emoji so the report renders in every agent and terminal.

References

Rules

  • Never hallucinate hardware constraints. If a fact is not in esp32wb chip output or a cited Espressif document, report it as unknown.
  • Label any classic-ESP32 fact as "classic ESP32" when you mention it.
  • Re-run the audit after every GPIO change and attach the output as test evidence.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Esp32 Pin Audit?

Audits GPIO assignments in ESP32-family firmware against the verified pin facts of the actual target chip and board, flagging flash/PSRAM pins, strapping pins, input-only pins, USB-Serial-JTAG and UART0 console pins, JTAG pins, ADC2/Wi-Fi conflicts, double assignments and pin-map drift. Use when the user asks "which pins can I use", "is GPIO 12 safe", "check my pinout", "pin conflict", "strapping pin", "board won't boot after wiring", "can't flash after connecting a sensor", "ADC2 with Wi-Fi", "input-only pin", "/pin-audit", or before adding any GPIO, I2C, SPI, UART, ADC or LEDC code on ESP...

Perché usare Esp32 Pin Audit su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Esp32 Pin Audit è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Esp32 Pin Audit in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-pin-audit. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Esp32 Pin Audit?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Esp32 Pin Audit?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Esp32 Pin Audit: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Esp32 Pin Audit è gratuita?

Sì. È pubblicata su GitHub da agodianel con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇