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.
- Section 1 Basic Introduction
- Section 2 GPIO
- Section 3 PWM
- Section 4 ADC
- Section 5 UART
- Section 6 I2C
- Section 7 SPI
- Section 8 PIO
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.
| Example | Basic Program Description | Dependency Library |
|---|---|---|
| 01_RGB | Onboard 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.