本文へ移動
cccskills
無料GitHub で公開

hardware

Read and control I2C and SPI peripherals on Sipeed boards (LicheeRV Nano, MaixCAM, NanoKVM).

インストール方法を見る

含まれるファイル(3)

  • SKILL.md2.3 KB
  • references/board-pinout.md3.1 KB
  • references/common-devices.md4.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Hardware (I2C / SPI)

Use the i2c and spi tools to interact with sensors, displays, and other peripherals connected to the board.

Quick Start

# 1. Find available buses
i2c detect

# 2. Scan for connected devices
i2c scan  (bus: "1")

# 3. Read from a sensor (e.g. AHT20 temperature/humidity)
i2c read  (bus: "1", address: 0x38, register: 0xAC, length: 6)

# 4. SPI devices
spi list
spi read  (device: "2.0", length: 4)

Before You Start — Pinmux Setup

Most I2C/SPI pins are shared with WiFi on Sipeed boards. You must configure pinmux before use.

See references/board-pinout.md for board-specific commands.

Common steps:

  1. Stop WiFi if using shared pins: /etc/init.d/S30wifi stop
  2. Load i2c-dev module: modprobe i2c-dev
  3. Configure pinmux with devmem (board-specific)
  4. Verify with i2c detect and i2c scan

Safety

  • Write operations require confirm: true — always confirm with the user first
  • I2C addresses are validated to 7-bit range (0x03-0x77)
  • SPI modes are validated (0-3 only)
  • Maximum per-transaction: 256 bytes (I2C), 4096 bytes (SPI)

Common Devices

See references/common-devices.md for register maps and usage of popular sensors: AHT20, BME280, SSD1306 OLED, MPU6050 IMU, DS3231 RTC, INA219 power monitor, PCA9685 PWM, and more.

Troubleshooting

ProblemSolution
No I2C buses foundmodprobe i2c-dev and check device tree
Permission deniedRun as root or add user to i2c group
No devices on scanCheck wiring, pull-up resistors (4.7k typical), and pinmux
Bus number changedI2C adapter numbers can shift between boots; use i2c detect to find current assignment
WiFi stopped workingI2C-1/SPI-2 share pins with WiFi SDIO; can't use both simultaneously
devmem not foundDownload separately or use busybox devmem
SPI transfer returns all zerosCheck MISO wiring and device power
SPI transfer returns all 0xFFDevice not responding; check CS pin and clock polarity (mode)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Browser automation via agent-browser CLI. Use when the user needs to navigate websites, fill forms, click buttons, take screenshots, extract data, or test web apps.

日本語の概要は準備中です。原文の説明を表示しています。

sipeed/picoclaw3万2026年10月10日 更新

github

無料

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

日本語の概要は準備中です。原文の説明を表示しています。

sipeed/picoclaw3万2026年10月10日 更新

Configure, extend, debug, or contribute to PicoClaw itself. Use when the task is about PicoClaw CLI commands, config.json, gateway, auth, models, skills, MCP servers, cron, routing, sessions, self-evolution, built-in slash commands, or repository internals. Use PicoClaw-native workflows, terminology, paths, and configuration.

日本語の概要は準備中です。原文の説明を表示しています。

sipeed/picoclaw3万2026年10月10日 更新

Create, update, or review Picoclaw skills. Use when writing a new skill, modifying an existing SKILL.md, turning a repeated workflow into a reusable skill, or organizing scripts, references, and assets for a skill.

日本語の概要は準備中です。原文の説明を表示しています。

sipeed/picoclaw3万2026年10月10日 更新

summarize

無料

Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).

日本語の概要は準備中です。原文の説明を表示しています。

sipeed/picoclaw3万2026年10月10日 更新

tmux

無料

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

日本語の概要は準備中です。原文の説明を表示しています。

sipeed/picoclaw3万2026年10月10日 更新

sipeed のスキルをすべて見る

このスキルの問題を報告する