RP2350-PiZero 是一款微雪 (Waveshare) 设计的高性能、高性价比的微控制板,板载 DVI 接口、Micro SD 卡座和 PIO-USB 接口,引出兼容树莓派 40PIN GPIO 接口,并预留一个PSRAM焊盘,便于开发和集成到产品中。
| ||
|
为了方便在电脑上使用MicroPython开发Pico/Pico2板,建议下载Thonny IDE
【MicroPython】machine.Pin类函数详解
【MicroPython】machine.PWM类函数详解
【MicroPython】machine.ADC类函数详解
【MicroPython】machine.UART类函数详解
【MicroPython】machine.I2C类函数详解
【MicroPython】machine.SPI类函数详解
【MicroPython】rp2.StateMachine类函数详解
对于 C/C++,建议使用 Pico VSCode 进行开发,这是一款 Microsoft Visual Studio Code 扩展,旨在让您在为 Raspberry Pi Pico 系列开发板创建、开发和调试项目时更加轻松。无论您是初学者还是经验丰富的专业人士,此工具都可以帮助您自信而轻松地进行 Pico 开发。下面我们介绍如何安装该扩展并使用。
Cmake Path: ${HOME}/.pico-sdk/cmake/v3.28.6/bin/cmake.exe Git Path: ${HOME}/.pico-sdk/git/cmd/git.exe Ninja Path: ${HOME}/.pico-sdk/ninja/v1.12.1/ninja.exe Python3 Path: ${HOME}/.pico-sdk/python/3.12.1/python.exe
这里提供两种方法烧录固件
1.按住Boot按键 2.将开发板连接到电脑上 3.然后会电脑会将开发板识别成一个U盘设备 4.将.uf2文件复制到U盘中,设备就会自动重启,程序烧录成功
set(PICO_BOARD pico CACHE STRING "Board type")
https://github.com/earlephilhower/arduino-pico/releases/download/4.5.2/package_rp2040_index.json
注意:如果您已经有ESP32板URL,您可以使用逗号分隔 URL,如下所示:
https://dl.espressif.com/dl/package_esp32_index.json,https://github.com/earlephilhower/arduino-pico/releases/download/4.5.2/package_rp2040_index.json
C:\Users\[username]\AppData\Local\Arduino15\packages
注意:将里面用户名:[username]替换成自己的用户名
MircoPython视频例程(github)
MicroPython固件/Blink例程(C)
树莓派官方C/C++示例程序 (github)
树莓派官方micropython示例程序 (github)
Arduino官方C/C++示例程序 (github)
>
setrtc <DD> <MM> <YY> <hh> <mm> <ss>: Set Real Time Clock Parameters: new date (DD MM YY) new time in 24-hour format (hh mm ss) e.g.:setrtc 16 3 21 0 4 0 date: Print current date and time lliot <drive#>: !DESTRUCTIVE! Low Level I/O Driver Test e.g.: lliot 1 format [<drive#:>]: Creates an FAT/exFAT volume on the logical drive. e.g.: format 0: mount [<drive#:>]: Register the work area of the volume e.g.: mount 0: unmount <drive#:>: Unregister the work area of the volume chdrive <drive#:>: Changes the current directory of the logical drive. <path> Specifies the directory to be set as current directory. e.g.: chdrive 1: getfree [<drive#:>]: Print the free space on drive cd <path>: Changes the current directory of the logical drive. <path> Specifies the directory to be set as current directory. e.g.: cd 1:/dir1 mkdir <path>: Make a new directory. <path> Specifies the name of the directory to be created. e.g.: mkdir /dir1 ls: List directory cat <filename>: Type file contents simple: Run simple FS tests big_file_test <pathname> <size in bytes> <seed>: Writes random data to file <pathname>. <size in bytes> must be multiple of 512. e.g.: big_file_test bf 1048576 1 or: big_file_test big3G-3 0xC0000000 3 cdef: Create Disk and Example Files Expects card to be already formatted and mounted start_logger: Start Data Log Demo stop_logger: Stop Data Log Demo
本程序需要安装 Pico PIO USB 库使用,具体安装步骤如下:
Core1 setup to run TinyUSB host with pio-usb Device attached, address = 1 Device 1: ID 05ac:0256 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 0110 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x05ac idProduct 0x0256 bcdDevice 0310 iManufacturer 1 CX iProduct 2 2.4G Wireless Receiver iSerialNumber 0 bNumConfigurations 1 TinyUSB Dual Device Info Example
Hello, world! V2-Version Card R3/R7: 0x1aa R3/R7: 0x40ff8000 R3/R7: 0xc0ff8000 Card Initialized: High Capacity Card SD card initialized SDHC/SDXC Card: hc_c_size: 30475 Sectors: 31207424 Capacity: 15238 MB Goodbye, world!
可以参考RP2350-datasheet中RP2350-E9部分内容
周一-周五(9:30-6:30)周六(9:30-5:30)
手机:13434470212
邮箱:services04@spotpear.cn
QQ:202004841