Thonny是Raspberry Pi Pico W 和其他基于 RP2040 的开发板的 MicroPython 端口适用于常用的开发环境。 Thonny 软件包可用于 Linux、MS Windows 和 macOS。安装后,使用 Thonny 开发环境在所有三个平台上都是一样的。 Thonny 的最新版本可以从 Thonny, Python IDE for beginners 下载。有关如何使用 Thonny 编辑器的...
我们尝试按照官方入门指南Getting started with Raspberry Pi Pico的指引,在搭载 Raspberry Pi OS 的树莓派 4B 上使用 C/C++ SDK 开发。 使用C/C++ SDK 开发 Pico 的思路是,利用软件将使用 C 语言编写的程序转化为可被 Pico 识别的 .uf2 文件,烧录到 Pico 中,由 Pico 运行。 首先在树莓派安装 Git 工具,...
把下载好的,UF2复制(或者拖拉)到这个「RPI-RP2」文件夹的根位置,即可。 同时Pico会自动重启,然后就看不见这个「RPI-RP2」文件夹,安装完成。 编写Pico的第一个程序 打开之前安装好的Thonny, 注意,在Thonny这个程序的界面的右下角,点击选择正确的解释器和编译环境为「MicroPython(Raspberry Pi Pico)」,如下图: ...
现在Raspberry Pi Pico 已准备好进行编程。打开 Thonny IDE,选择解释器为 MicroPython(Raspberry PI Pico)。 第2 步 - 连接 您可以在下面找到 Raspberry Pi Pico 的引脚排列。 如上图所示进行连接。 我们有一个内部 RTC 来获取时间。在这里,我们将水泵、土壤湿度传感器、RGB LED 连接到 Raspberry Pi Pico。
其中,作为亲儿子,搭载 Raspberry Pi OS 的树莓派 4B 或树莓派 400 的开发环境配置最为便捷,通过一行 setup 脚本命令便可以完成大部分的配置工作。 Pico 采用颇为便捷的拖放式编程:将 Pico 通过 USB 与计算机连接,Pico 会被计算机识别为大容量存储设备,向其中拖放编程文件即可完成程序烧录。接下来的「上手体验」环...
The Thonny editor Raspberry Pi Pico Datasheet RP2040 Datasheet Additional bonus online tutorials (not in the book!) Pico Thermometer Storing Data Live data logging Payment & Accreditations Payment methods Your payment information is processed securely. We do not store credit card details ...
将Pico接入电脑(不用按键),如果之前没有刷过MicroPython, 注意按照#刷固件操作 选择Tools -> Options... -> Interpreter 在解释器选项中选择Raspberry Pi Pico (注意下载最新版本的Thonny, 否则没有该选项) 端口选择 在电脑上,端口选择为,接入Pico之后,电脑识别到的COM口号 ...
To install and setup Thonny IDE for Raspberry Pi, please follow these steps: First you will need to install theThonny IDE. After installing, upon opening the IDE, the following window will pop up. You may choose the language you'd like the IDE to have, but make sure to leave the ...
编写和运行代码:在Thonny中编写MicroPython代码,使用network库与无线硬件沟通,观察板载LED变化,查看TCP/IP的网络配置信息。三、使用Arduino IDE 安装Arduino环境:在Arduino IDE中添加Raspberry Pi Pico Arduino core的JSON字符串到Additional Boards Manager URL。 安装新板:使用Arduino IDE中的Boards Manager...
The modules required for MQTT were successfully uploaded to the Raspberry Pi Pico.Creating a Configuration FileWe’ll create a configuration file to save the SSID, password, and your MQTT broker details: URL, username, and password.Create a new file called config.py on Thonny IDE and copy ...