Pybricks Documentation

Pybricks is Python coding for smart LEGO® hubs. Run MicroPython scripts directly on the hub, and get full control of your motors and sensors.

Pybricks runs on LEGO® BOOST, City, Technic, MINDSTORMS®, and SPIKE®. You can code using Windows, Mac, Linux, Chromebook, and Android.

Click on any device below to see its documentation. Use the menu on the left to find documentation for additional modules. You may need to click the ☰ icon above to reveal this menu.

Programmable hubs

_images/hub-all.png

Powered Up motors and sensors

_images/pupdevice-all.png
_images/pupdevice-motors.png
_images/pupdevice-dcmotors.png