Token导航 LogoToken导航

Agent Skill · 开发

unihiker-k10-micropython(unihiker K10 micropython 测试)

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

unihiker-k10-micropython 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 6,888。

总安装 4,253周安装 179GitHub Stars 公开资料未说明下载 1,489核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:unihiker-k10-micropython(unihiker K10 micropython 测试)
来源仓库:https://github.com/rockets-cn/unihiker-k10-micropython
安装命令:
openclaw skills install unihiker-k10-micropython
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install unihiker-k10-micropython

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

使用 MicroPython 对 Unihiker K10 板进行编程、上传代码、刷新固件或访问 K10 MicroPython API(屏幕、传感器、RGB、音频、AI)时使用

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install unihiker-k10-micropython;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

unihiker-k10-micropython 怎么安装?

在终端执行 openclaw skills install unihiker-k10-micropython。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

unihiker-k10-micropython 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

unihiker-k10-micropython 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

unihiker-k10-micropython 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

unihiker-k10-micropython 用的人多吗?

公开数据是累计安装 4,253 次,近一周安装 179 次,下载 1,489 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

unihiker-k10-micropython 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
unihiker-k10-micropython

unihiker K10 micropython 测试 · 本页

4,253—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
unihiker-k10-micropython
description
Use when programming Unihiker K10 board with MicroPython, uploading code, flashing firmware, or accessing K10 MicroPython APIs (screen, sensors, RGB, audio, AI)

Unihiker K10 - MicroPython

Overview

CLI toolkit for Unihiker K10 board MicroPython programming. Core principle: Follow reference docs exactly—no improvisation.

When to Use

  • Uploading MicroPython code to K10
  • Flashing MicroPython firmware
  • Looking up K10 MicroPython APIs (screen, sensors, RGB, audio, AI)
  • Port detection or connectivity issues

Commands

CommandDescription
k10-micropython upload-mp <file.py>Upload MicroPython
k10-micropython flash-mpFlash MicroPython firmware
k10-micropython portsList serial ports
k10-micropython doctorEnvironment diagnostic

Coding

Basic Template

from unihiker_k10 import screen
screen.init(dir=2)
screen.draw_text(text="Hello", x=10, y=0, font_size=24, color=0xFF0000)
screen.show_draw()

Important:

  • Auto-execution: Only main.py runs automatically on boot. Other filenames (e.g., test.py) must be imported or run via REPL
  • Best practice: Name your entry file as main.py for auto-start
  • Reference: references/micropython-api.md

Common Issues

IssueSolution
MicroPython code doesn't runOnly main.py runs automatically. Rename your file or use REPL to run it
Flash failedMake sure BOOT button is held when connecting USB to enter download mode
mpremote: could not enter raw replK10 is running Arduino, flash MicroPython firmware first
Port not foundk10-micropython ports or hold BOOT while connecting
AI + WiFi conflictUse only one in V0.9.2
Windows PowerShell执行策略限制运行 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

开发经验教训

2025-03-22 实践总结

与Arduino模式的区别:

  1. 固件互斥: K10不能同时运行Arduino和MicroPython固件,需要刷写对应固件
  2. 入口文件: MicroPython只有main.py会自动运行,其他文件需要手动import
  3. 工具链不同: Arduino使用arduino-cli,MicroPython使用mpremote

刷写MicroPython固件步骤:

  1. 按住BOOT按钮
  2. 按RST按钮重置
  3. 释放BOOT按钮
  4. 运行刷写命令
  5. 等待完成(30-60秒)
  6. 按RST重启

注意事项:

  • V0.9.2固件中AI功能和WiFi不能同时使用,会导致内存溢出
  • 首次刷写后建议先上传简单的main.py测试

Files

unihiker-k10-micropython/
├── SKILL.md                 # This file
└── references/            # MicroPython API docs
    └── micropython-api.md # MicroPython API reference

Manual usage without CLI:

# Upload MicroPython
bash path/to/unihiker-k10-micropython/scripts/upload-micropython.sh main.py /dev/cu.usbmodem2201

# Flash MicroPython firmware
bash path/to/unihiker-k10-micropython/scripts/flash-micropython.sh /dev/cu.usbmodem2201

MicroPython Code Execution

  • Automatic execution: Files named main.py run automatically after upload and reset
  • Manual execution: Other filenames require REPL interaction:
  # Connect to REPL
  mpremote connect /dev/cu.usbmodem2201 repl
  
  # Import and run your module
  >>> import test

File naming best practice:

your_project/
├── main.py          # Entry point - runs automatically on boot
├── test.py          # Test file - must be imported via REPL
└── heart.py         # Other files - import with `import heart`

Flashing MicroPython Firmware

Method 1: Manual (Recommended)

  1. Hold BOOT button on K10
  2. Press RST button on K10
  3. Release BOOT button
  4. Run: k10-micropython flash-mp or k10-micropython flash-mp --port /dev/cu.usbmodem2201
  5. Wait for flash to complete (30-60 seconds)
  6. Press RST button on K10 to restart
  7. Upload Python code with k10-micropython upload-mp file.py

Method 2: Interactive

  1. Run: k10-micropython flash-mp
  2. Follow on-screen prompts
  3. Hold BOOT button, connect USB, release BOOT

Quick Development Workflow

# 1. Create MicroPython script
echo "from unihiker_k10 import screen
screen.init(dir=2)
screen.draw_text(text='Hello K10', x=10, y=0, font_size=24, color=0xFFFFFF)
screen.show_draw()" > main.py

# 2. Upload as main.py for auto-run
k10-micropython upload-mp main.py

# 3. Or test as test.py and run via REPL
k10-micropython upload-mp test.py
mpremote connect /dev/cu.usbmodem2201 repl
>>> import test

Key Features

Screen:

  • Screen initialization and direction control
  • Text drawing with custom font size and color
  • Shape drawing: lines, circles, rectangles, points
  • Image display from TF card
  • QR code generation and display

Sensors:

  • Buttons A/B (callback and status check)
  • Accelerometer (X, Y, Z axes)
  • Temperature & humidity (AHT20)
  • Light sensor (ALS)
  • Microphone (recording to TF card)

RGB LED Control:

  • Individual LED control (0, 1, 2)
  • All LEDs control (-1)
  • Brightness control (0-9)

Audio:

  • Buzzer control (playTone)
  • Microphone recording to TF card

AI Features (V0.9.2):

  • Face Detection: Detect faces, show length, width, center coordinates
  • Face Recognition: Enroll faces, recognize faces, display ID
  • Cat Recognition: Detect and classify cats (with TF card images)
  • Movement Detection: Motion detection with customizable threshold
  • QR Code Scanning: Scan QR codes and display content
  • Speech Recognition: Wake-up command and voice commands

Note on AI:

  • AI functionality is resource-intensive in V0.9.2 firmware
  • AI + WiFi conflict: Use only one at a time to avoid memory overflow

Example: Face Recognition with LED Feedback

import ai
from unihiker_k10 import screen, rgb, button
import time

def callback(data):
    if data == 1:
        screen.draw_text(text="录入中...", x=10, y=90, font_size=24, color=0xFFFF00)
    elif data >= 0:
        screen.draw_text(text=f"人脸ID: {data}", x=10, y=90, font_size=24, color=0x00FF00)
    screen.show_draw()

screen.init(dir=2)
screen.show_bg(color=0x000000)
screen.draw_text(text="A: 录入", x=10, y=50, font_size=18, color=0xFFFF00)
screen.draw_text(text="B: 删除全部", x=10, y=70, font_size=18, color=0xFF0000)
screen.draw_text(text="LED: 红色=未知", x=10, y=110, font_size=18, color=0xFF0000)
screen.draw_text(text="   绿色=已识别", x=10, y=130, font_size=18, color=0x00FF00)
screen.show_draw()

rgb.brightness(9)

ai.init_ai()
ai.camera_start()
ai.face_recognize_start()
ai.send_face_cmd(2)  # Recognition mode
ai.set_asr_callback(callback)

try:
    while True:
        image_data = ai.camera_capture()
        screen.show_camera_img(image_data)
        time.sleep_ms(1)
except KeyboardInterrupt:
    print("Exiting...")
    ai.deinit_ai()
    rgb.brightness(0)
    screen.clear()

Features:

  • Face Enroll (A button): ai.send_face_cmd(1) - Green LED
  • Face Recognition (automatic): Display ID, Green LED
  • Unknown face: Red LED
  • Delete all faces (B button): ai.send_face_cmd(3) - Clear stored faces
  • Camera display: Show real-time camera feed on screen

平台分布

OpenClaw

73.92%
按下载量换算1,101

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills