Skip to main content

Working with MicroPython

This chapter contains the following sections. Please read as needed:

MicroPython Getting Started Tutorial

New to Pico MicroPython development and want to get started quickly? We have prepared a general introductory tutorial for you. These tutorial is designed to help developers quickly become familiar with Thonny IDE and start developing. It covers environment setup, project creation, component usage, and peripheral programming, helping you take the first step in MicroPython programming.

Setting Up the Development Environment

Please refer to the Install and Configure Thonny IDE Tutorial to download and install the Thonny IDE.

Example

The MicroPython examples are located in the examples\MicroPython directory of the example package.

ExampleBasic Program DescriptionDependency Library
01_RGBOnboard RGB LED example-

01_RGB

Example Description

  • Uses GPIO16 to drive a WS2812B RGB LED via PIO, cycling through colors.

Hardware Connection

  • Connect the board to the computer using a USB cable.

Operation Result

  • After flashing, the WS2812B RGB LED continuously fades through red, green, and blue.