pybricks
杜鸣工作室汉化版 Logo

Pybricks 模块

  • hubs – 主控内置功能
  • pupdevices – 马达、传感器、灯光
    • 无旋转传感器的马达
    • 带旋转传感器的马达
    • Tilt Sensor(倾斜传感器)
    • Infrared Sensor(红外传感器)
    • Color and Distance Sensor(颜色与距离传感器)
    • Power Functions(动力功能)
    • Color Sensor(颜色传感器)
    • Ultrasonic Sensor(超声波传感器)
    • Force Sensor(力传感器)
    • Color Light Matrix(颜色灯光矩阵)
    • Light(灯光)
    • Remote Control(遥控器)
    • Technic Move Hub(科技系列移动主控)
    • Mario Hub(马里奥主控)
    • Duplo Train(得宝火车)
  • ev3devices – EV3 马达与传感器
  • nxtdevices – NXT 马达与传感器
  • iodevices – 自定义设备
  • parameters – 参数与常量
  • tools – 通用工具
  • robotics – 机器人和移动底盘
  • messaging – 收发消息
  • 信号与单位

MicroPython 模块

  • 内建类与函数
  • 异常和错误
  • micropython – MicroPython 内部实现
  • uerrno – 错误代码
  • uio – 输入/输出流
  • ujson – JSON 编码与解码
  • umath – 数学函数
  • urandom – 伪随机数
  • uselect – 等待事件
  • ustruct – 二进制数据打包与解包
  • usys – 系统特定功能
pybricks
  • pupdevices – 马达、传感器、灯光

✅ ✅ ✅ ✅ ✅ ✅ ❌

pupdevices – 马达、传感器、灯光

LEGO® Powered Up 马达、传感器和灯光。

类 DCMotor(直流马达)
../_images/pupdevice-dcmotors.png
类 Motor
../_images/pupdevice-motors.png
类 TiltSensor(倾斜传感器)
../_images/pupdevice-tilt.png
类 InfraredSensor(红外传感器)
../_images/pupdevice-infrared.png
类 ColorDistanceSensor(颜色距离传感器)
../_images/pupdevice-colordistance.png
类 PFMotor(Power Functions 马达)
../_images/pupdevice-pfmotor.png
类 ColorSensor(颜色传感器)
../_images/pupdevice-color.png
类 UltrasonicSensor(超声波传感器)
../_images/pupdevice-ultrasonic.png
类 ForceSensor(力传感器)
../_images/pupdevice-force.png
类 ColorLightMatrix(彩色灯矩阵)
../_images/sensor_colorlightmatrix.png
类 Light
../_images/pupdevice-light.png
类 Remote
../_images/pupdevice-remote.png
❌ ❌ ❌ ✅ ✅ ✅ ❌
类 TechnicMoveHub(科技移动主控)
❌ ❌ ❌ ✅ ✅ ✅ ❌
类 MarioHub(马力欧主控)
❌ ❌ ❌ ✅ ✅ ✅ ❌
类 DuploTrain(得宝火车)

© 版权所有 2018-2026 The Pybricks Authors。

使用 Sphinx 构建,采用 theme 由 Read the Docs 提供。
LEGO、LEGO 标志、MINDSTORMS 和 MINDSTORMS EV3 标志是 LEGO Group of companies 的商标和/或版权,该公司不赞助、授权或认可本网站。