Google Chat:---
+86-0755-88291180
sales@spotpear.com
dragon_manager@163.com
tech-support@spotpear.com
zhoujie@spotpear.com
WhatsApp:13246739196
WhatsApp:13424403025



This chapter contains the following sections. Please read as needed:
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.
Please refer to the Install and Configure Thonny IDE Tutorial to download and install the Thonny IDE.
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 | - |
Example Description
Hardware Connection
Operation Result
This chapter contains the following sections. Please read as needed:
Please refer to the Install and Configure Pico C/C++ Development Environment Tutorial to download and install the Pico VSCode.
The C/C++ examples are located in the examples\C directory of the example package.
| Example | Basic Program Description | Dependency Library |
|---|---|---|
| 01_USB | PIO‑USB emulation of USB device/host examples | - |
| 02_RGB | Onboard RGB LED example | - |
The examples are modified from sekigon-gonnoc's Pico-PIO-USB.
Example version: 0.5.3
PICO SDK version: 2.2.0
Example Description
usb_device
examples/usb_devicehost_hid_to_device_cdc
examples/host_hid_to_device_cdcSDK\lib\tinyusb\src\portable\raspberrypi\pio_usb\hcd_pio_usb.c, as shown below:bool hcd_edpt_abort_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr) {
uint8_t const pio_rhport = RHPORT_PIO(rhport);
// return pio_usb_host_endpoint_abort_transfer(pio_rhport, dev_addr, ep_addr);
}
uint32_t hcd_frame_number(uint8_t rhport) {
(void) rhport;
// return pio_usb_host_get_frame_number();
}
Hardware Connection
Operation Result
usb_device
PIO‑USB emulates a mouse and moves the mouse cursor every 0.5 seconds.

host_hid_to_device_cdc
Similar to capture_hid_report, prints mouse/keyboard reports from the host port to the device port's CDC.

Example Description
Hardware Connection
Operation Result
Development Board Design Files
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com