0% found this document useful (0 votes)
69 views

Micro Python

MicroPython is a full implementation of the Python 3 programming language that runs directly on embedded hardware like the Raspberry Pi Pico. It includes an interactive prompt (REPL) to execute commands via USB and a built-in filesystem. Documentation for using MicroPython on the RP2040 microcontroller is available, as well as a book that teaches how to program the Pico with MicroPython and connect hardware. Drag-and-drop installation of MicroPython on the Pico is also possible by pressing the BOOTSEL button while connecting the Pico to a computer and dragging a UF2 file onto it.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

Micro Python

MicroPython is a full implementation of the Python 3 programming language that runs directly on embedded hardware like the Raspberry Pi Pico. It includes an interactive prompt (REPL) to execute commands via USB and a built-in filesystem. Documentation for using MicroPython on the RP2040 microcontroller is available, as well as a book that teaches how to program the Pico with MicroPython and connect hardware. Drag-and-drop installation of MicroPython on the Pico is also possible by pressing the BOOTSEL button while connecting the Pico to a computer and dragging a UF2 file onto it.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

MicroPython

Source:- https://www.raspberrypi.com/documentation/microcontrollers/micropython.html#drag-and-drop-
micropython

What is MicroPython?
Edit this on GitHub

MicroPython is a full implementation of the Python 3 programming language that runs


directly on embedded hardware like Raspberry Pi Pico. You get an interactive prompt (the
REPL) to execute commands immediately via USB Serial, and a built-in filesystem. The Pico
port of MicroPython includes modules for accessing low-level chip-specific hardware.

 The MicroPython Wiki

 The MicroPython Forums

Documentation
You can find information on the MicroPython port to RP2040 at;

Raspberry Pi Pico Python SDK


A MicroPython environment for RP2040 microcontrollers

RP2 Quick Reference


The official documentation around the RP2040 port of MicroPython

RP2 Library
The official documentation about the rp2 module in MicroPython

There is also a book by Raspberry Pi Press available written by Gareth Halfacree and Ben
Everard.
In "Get Started with MicroPython on Raspberry Pi Pico", you will learn how to use the
beginner-friendly language MicroPython to write programs and connect hardware to make
your Raspberry Pi Pico interact with the world around it. Using these skills, you can create
your own electro-mechanical projects, whether for fun or to make your life easier.

 Set up your Raspberry Pi Pico and start using it

 Start writing programs using MicroPython

 Control and sense electronic components

 Discover how to use Pico’s unique Programmable IO

 Make a reaction game, burglar alarm, temperature gauge, and many more

You can buy the book on the Raspberry Pi Press site.

Drag-and-Drop MicroPython
Edit this on GitHub

You can program your Pico by connecting it to a computer via USB, then dragging and
dropping a file onto it, so we’ve put together a downloadable UF2 file to let you install
MicroPython more easily.
1. Download the MicroPython UF2 file.

2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your
Raspberry Pi or other computer. Release the BOOTSEL button after your Pico is
connected.

3. It will mount as a Mass Storage Device called RPI-RP2.

4. Drag and drop the MicroPython UF2 file onto the RPI-RP2 volume. Your Pico will
reboot. You are now running MicroPython.

5. You can access the REPL via USB Serial. Our MicroPython documentation contains
step-by-step instructions for connecting to your Pico and programming it in
MicroPython.

NOTE If you’re new to MicroPython, our official guide, "Get started with MicroPython on
Raspberry Pi Pico", is a great place to start. Learn the basics of MicroPython and physical
computing, connect your Pico to displays and sensors, build alarms, reaction games, and more.

You might also like