pybricks Logo
v3.2.0

Pybricks modules

  • hubs – Built-in hub functions
  • pupdevices – Motors, sensors, lights
    • Motors without rotation sensors
    • Motors with rotation sensors
    • Tilt Sensor
    • Infrared Sensor
    • Color and Distance Sensor
    • Power Functions
    • Color Sensor
    • Ultrasonic Sensor
    • Force Sensor
    • Color Light Matrix
    • Light
    • Remote Control
  • iodevices – Custom devices
  • parameters – Parameters and constants
  • tools – Timing tools
  • robotics – Robotics and drive bases
  • geometry – Geometry and algebra
  • Signals and Units

MicroPython modules

  • Built-in classes and functions
  • Exceptions and errors
  • micropython – MicroPython internals
  • uerrno – Error codes
  • uio – Input/output streams
  • ujson – JSON encoding and decoding
  • umath – Math functions
  • urandom – Pseudo-random numbers
  • uselect – Wait for events
  • ustruct – Pack and unpack binary data
  • usys – System specific functions
pybricks
  • »
  • pupdevices – Motors, sensors, lights
  • Edit on GitHub

✅ ✅ ✅ ✅ ✅ ✅

pupdevices – Motors, sensors, lights¶

LEGO® Powered Up motor, sensors, and lights.

class DCMotor
../_images/pupdevice-dcmotors.png
class Motor
../_images/pupdevice-motors.png
class TiltSensor
../_images/pupdevice-tilt.png
class InfraredSensor
../_images/pupdevice-infrared.png
class ColorDistanceSensor
../_images/pupdevice-colordistance.png
class PFMotor
../_images/pupdevice-pfmotor.png
class ColorSensor
../_images/pupdevice-color.png
class UltrasonicSensor
../_images/pupdevice-ultrasonic.png
class ForceSensor
../_images/pupdevice-force.png
class ColorLightMatrix
../_images/sensor_colorlightmatrix.png
class Light
../_images/pupdevice-light.png
class Remote
../_images/pupdevice-remote.png
Previous Next

© Copyright 2018-2021 The Pybricks Authors. Revision 36ee3bd9.

Built with Sphinx using a theme provided by Read the Docs.
LEGO, the LEGO logo, MINDSTORMS and the MINDSTORMS EV3 logo are trademarks and/or copyrights of the LEGO Group of companies which does not sponsor, authorize or endorse this site.
Read the Docs v: v3.2.0
Versions
latest
stable
v3.2.0
v3.1.0
v3.0
v2.0
work
Downloads
On Read the Docs
Project Home
Builds