返回顶部
a

arduino-cli

Provides commands and workflows for Arduino CLI. Use when the user wants to create, compile, or upload Arduino sketches, manage boards (list, attach), install/search/list cores (platforms) and libraries, or configure Arduino CLI. Triggers on phrases like "arduino-cli", "compile sketch", "upload arduino", "install arduino core", or "arduino library".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
127
下载量
0
收藏
概述
安装方式
版本历史

arduino-cli

# Arduino CLI Skill This skill provides guidance for using the `arduino-cli` to manage Arduino projects, boards, cores, and libraries from the command line. ## Quick Reference ### 1. Configuration & Setup Initialize the configuration file (usually in `~/.arduino15/arduino-cli.yaml`): ```bash arduino-cli config init ``` Update the local cache of available platforms and libraries (do this first!): ```bash arduino-cli core update-index ``` ### 2. Board Management List connected boards to find the port and FQBN (Fully Qualified Board Name): ```bash arduino-cli board list ``` List all supported boards and their FQBN strings: ```bash arduino-cli board listall <search_term> ``` ### 3. Core (Platform) Management Search for a core: ```bash arduino-cli core search <keyword> ``` Install a core using its ID (e.g., `arduino:samd`): ```bash arduino-cli core install <core_id> ``` List installed cores: ```bash arduino-cli core list ``` ### 4. Sketch Workflow Create a new sketch: ```bash arduino-cli sketch new <SketchName> ``` Compile a sketch (requires the board's FQBN): ```bash arduino-cli compile --fqbn <FQBN> <SketchName> ``` *Example:* `arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch` Upload a sketch to a connected board: ```bash arduino-cli upload -p <port> --fqbn <FQBN> <SketchName> ``` *Example:* `arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:mkr1000 MyFirstSketch` ### 5. Library Management Search for a library: ```bash arduino-cli lib search <keyword> ``` Install a library: ```bash arduino-cli lib install "<Library Name>" ``` ## Adding 3rd Party Cores (e.g., ESP8266) To install 3rd party cores, pass the `--additional-urls` flag to your core commands: ```bash arduino-cli core update-index --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json arduino-cli core install esp8266:esp8266 --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json ``` *(Alternatively, these URLs can be added to the `board_manager.additional_urls` array in `arduino-cli.yaml`)*

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 arduino-cli-1776024735 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 arduino-cli-1776024735 技能

通过命令行安装

skillhub install arduino-cli-1776024735

下载 Zip 包

⬇ 下载 arduino-cli v1.0.0

文件大小: 1.57 KB | 发布时间: 2026-4-13 09:23

v1.0.0 最新 2026-4-13 09:23
Initial release of the Arduino CLI skill.

- Provides reference commands for Arduino CLI setup, board management, core/platform management, sketch creation/compilation/upload, and library management.
- Includes instructions for adding third-party cores.
- Useful for creating, compiling, uploading Arduino sketches, and managing boards, cores, and libraries from the command line.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部