Pico-Get-Start-RPI
来自Waveshare Wiki
树莓派环境搭建教程
脚本安装
- 脚本安装需要良好的网络环境,否可能导致安装失败
获取脚本
cd ~ wget https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh
运行脚本
chmod +x pico_setup.sh ./pico_setup.sh
重启
sudo reboot
手动安装
下载有关编译库
sudo apt update sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential -y sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev -y
下载压缩包并解压
国内用户
cd ~ sudo apt-get install p7zip-full -y #wget https://github.com/EngineerWill/Pico-lib/releases/download/v1.0/Pico-lib.7z wget https://ghproxy.com/https://github.com/EngineerWill/Pico-lib/releases/download/v1.0/Pico-lib.7z 7z x ./Pico-lib.7z
国外用户
cd ~ sudo apt-get install p7zip-full -y wget https://github.com/EngineerWill/Pico-lib/releases/download/v1.0/Pico-lib.7z 7z x ./Pico-lib.7z
安装openocd(可选)
cd ~/pico/openocd/ ./bootstrap ./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio make -j4 sudo make install