i2c-scan
Skill0 starsChanged 6 months agoMITView on GitHub
用户输入包含以下关键词时触发: - "扫描 I2C" - "I2C 设备" - "I2C 总线"
In this repository11 other files it gives its agents.
- plumb-linkSkill
- gpio-configSkill
- spi-debugSkill
- cross-compile-buildSkill
- freertos-configSkill
- linux-buildSkill
- build-linux-appSkill
- git-commitSkill
- deploy-releaseSkill
- project-initSkill
- .traeSkill
The file
Files
HW002 - I2C 扫描技能
技能信息
| 项目 | 内容 |
| 技能ID | HW002 |
| 技能名称 | i2c-scan |
| 触发关键词 | i2c,scan,扫描,总线,设备 |
| 平台支持 | Linux/裸机 |
| 状态 | 待设计 |
触发条件
用户输入包含以下关键词时触发:
- "扫描 I2C"
- "I2C 设备"
- "I2C 总线"
执行步骤
- 参数解析:解析 I2C 总线编号
- 权限检查:检查是否有访问 I2C 设备的权限
- 扫描总线:使用 i2cdetect 扫描总线上的设备
- 解析结果:提取已连接设备的地址列表
- 返回结果:返回扫描结果和设备列表
输出格式
{
"status": "success",
"summary": "I2C 扫描完成",
"evidence": [
{
"type": "output",
"content": "总线 0 上发现 2 个设备: 0x50, 0x68",
"title": "扫描结果"
}
],
"devices": [
{"address": "0x50", "description": "EEPROM"},
{"address": "0x68", "description": "RTC"}
]
}依赖工具
| 工具名称 | 用途 | 最低版本 | 检测方法 |
| i2cdetect | I2C 设备扫描工具 | 4.0+ | i2cdetect --version |
安全注意事项
- 需要安装 i2c-tools 软件包
- I2C 操作需要相应权限
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

