hardware
What it does
This skill lets your agent talk to sensors, displays, and other hardware plugged into a Sipeed board. It covers scanning for devices, reading values, and sending commands over I2C and SPI.
When to use it
- ✓When you want to read a temperature or humidity sensor on a Sipeed board.
- ✓When you want to scan which devices are connected to a board's I2C or SPI bus.
- ✓When you want to control a display or other peripheral connected to the board.
Skill link
https://github.com/sipeed/picoclaw/blob/main/workspace/skills/hardware/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Scan the I2C bus on my LicheeRV board and read the temperature from the sensor that is connected.”
5 new skills a week. 1 minute to read.
How it works
The agent lists the available buses, scans for connected devices, and reads registers from the sensor you name. Write operations need your confirmation first, and addresses and transfer sizes are checked against limits.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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:
- Stop WiFi if using shared pins:
/etc/init.d/S30wifi stop - Load i2c-dev module:
modprobe i2c-dev - Configure pinmux with
devmem(board-specific) - Verify with
i2c detectandi2c 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
| Problem | Solution |
|---|---|
| No I2C buses found | modprobe i2c-dev and check device tree |
| Permission denied | Run as root or add user to i2c group |
| No devices on scan | Check wiring, pull-up resistors (4.7k typical), and pinmux |
| Bus number changed | I2C adapter numbers can shift between boots; use i2c detect to find current assignment |
| WiFi stopped working | I2C-1/SPI-2 share pins with WiFi SDIO; can't use both simultaneously |
devmem not found |
Download separately or use busybox devmem |
| SPI transfer returns all zeros | Check MISO wiring and device power |
| SPI transfer returns all 0xFF | Device not responding; check CS pin and clock polarity (mode) |
FAQ
Will it change device settings without asking?
No. Any write operation requires your explicit confirmation first.
Do I need to set up the pins first?
Often yes. Many pins are shared with WiFi, so the skill includes steps for configuring them before use.
Which boards does it support?
It is written for Sipeed boards such as LicheeRV Nano, MaixCAM, and NanoKVM.
Details
Original description by the author
Read and control I2C and SPI peripherals on Sipeed boards (LicheeRV Nano, MaixCAM, NanoKVM).
repo: sipeed/picoclaw
Popularity
- GitHub stars
- 30k
- Ranking position
- #9356
- License
- MIT
- Updated
- 10/30/2026
Comments
- …
More skills from this repository
agent-browser
30kHelps your agent open websites, fill in forms, click buttons, take screenshots, and pull data using a browser command tool.
picoclaw-agent
30kHelps your agent set up, configure, and troubleshoot PicoClaw, a lightweight personal AI assistant with chat gateways and scheduled jobs.
summarize
30kHelps your agent summarize web pages, local files, and YouTube videos, or pull out a transcript when one is available.
weather
30kHelps your agent check the current weather and forecast for a city, confirming the location so you get the right place.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.