← 返回 Skills 市场
1337
总下载
3
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install esp32
功能描述
Avoid common ESP32 mistakes — GPIO conflicts, WiFi+ADC2 trap, deep sleep gotchas, and FreeRTOS pitfalls.
使用说明 (SKILL.md)
GPIO Restrictions
- Strapping pins boot behavior — GPIO0, GPIO2, GPIO12, GPIO15 affect boot mode
- GPIO6-11 connected to flash — don't use, crashes immediately
- GPIO34-39 input only — no output, no pullup/pulldown
- ADC2 unusable with WiFi active — use ADC1 (GPIOs 32-39) when WiFi enabled
Deep Sleep
- Only RTC GPIOs for wakeup — GPIO0, 2, 4, 12-15, 25-27, 32-39
RTC_DATA_ATTRfor persistent variables — regular RAM lost in deep sleepesp_sleep_enable_ext0_wakeup()for single pin —ext1for multiple pins- WiFi reconnect takes 1-3 seconds after wake — plan for this delay
WiFi Gotchas
- Call
WiFi.mode()beforeWiFi.begin()— mode affects behavior WiFi.setAutoReconnect(true)doesn't always work — implement reconnect in loop- Event-driven with
WiFi.onEvent()more reliable — don't pollWiFi.status() - Static IP faster than DHCP — saves 2-5 seconds on connect
FreeRTOS
- Default stack too small for printf/WiFi — use 4096+ for complex tasks
- Task watchdog triggers at 5s default — call
vTaskDelay()or feed watchdog xTaskCreatePinnedToCore()for core affinity — WiFi on core 0, your code on core 1delay()yields to scheduler —vTaskDelay(pdMS_TO_TICKS(ms))in tasks
Memory
- Heap fragments over time — preallocate buffers, avoid repeated malloc/free
ESP.getFreeHeap()for monitoring — log periodically in long-running apps- PSRAM available on some boards —
heap_caps_malloc(size, MALLOC_CAP_SPIRAM) - String concatenation fragments heap — use
reserve()or char arrays
Peripherals
- No native
analogWrite()— use LEDC:ledcSetup(),ledcAttachPin(),ledcWrite() - I2C needs external pullups usually — internal pullups too weak for fast speeds
- SPI CS pin must be managed —
SPI.begin()doesn't auto-configure - UART0 is Serial/USB — use UART1/2 for external devices
OTA Updates
- Needs two OTA partitions — default partition scheme may have only one
- Check
ESP.getFreeSketchSpace()— OTA fails silently if not enough space ArduinoOTAblocks during update — handle in loop, not in time-critical code
Power
- Brown-out detector resets at ~2.4V —
esp_brownout_disable()if using battery - WiFi TX uses 300mA peaks — power supply must handle spikes
- Deep sleep ~10µA — but RTC peripherals add more if enabled
安全使用建议
This skill is a read-only reference of ESP32 best-practices and appears safe to install. Keep in mind: 1) The guidance may be version- or board-specific — verify details against your board's datasheet and the Espressif SDK/Arduino core you use. 2) Do not blindly disable hardware protections (e.g., esp_brownout_disable()) — that can cause unstable behavior on battery-powered devices. 3) OTA and partition advice depends on your partition scheme; test OTA in a controlled environment. 4) ADC/GPIO and deep-sleep wakeup pin lists vary by chip revision/module — double-check for your variant. If you need code or automated tasks, prefer a skill that clearly declares any installs or required credentials; this skill is purely advisory and contains no hidden install steps.
功能分析
Type: OpenClaw Skill
Name: esp32
Version: 1.0.0
The skill bundle is benign. The `_meta.json` file contains standard metadata, and the `SKILL.md` file provides purely informational content about common ESP32 development pitfalls and best practices. There is no evidence of prompt injection attempts, malicious execution, data exfiltration, persistence mechanisms, or any other high-risk behaviors in either file. The content is entirely aligned with its stated purpose of educating on ESP32 development.
能力评估
Purpose & Capability
The name/description (ESP32 gotchas) align with the SKILL.md content (GPIO, deep sleep, WiFi, FreeRTOS, power, OTA, etc.). There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md is purely advisory documentation about development pitfalls and API usage on ESP32 boards. It does not instruct the agent to read local files, access credentials, call external endpoints, or perform system operations outside its stated scope.
Install Mechanism
No install spec or code files are present; this is instruction-only so nothing will be downloaded or written to disk during install.
Credentials
The skill requires no environment variables, credentials, or configuration paths — proportional for a documentation-style skill.
Persistence & Privilege
always:false and default invocation settings are used. The skill does not request persistent presence or permissions to modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install esp32 - 安装完成后,直接呼叫该 Skill 的名称或使用
/esp32触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
ESP32 是什么?
Avoid common ESP32 mistakes — GPIO conflicts, WiFi+ADC2 trap, deep sleep gotchas, and FreeRTOS pitfalls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1337 次。
如何安装 ESP32?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install esp32」即可一键安装,无需额外配置。
ESP32 是免费的吗?
是的,ESP32 完全免费(开源免费),可自由下载、安装和使用。
ESP32 支持哪些平台?
ESP32 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 ESP32?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。
推荐 Skills