How to find the "usbmodem" of Raspberry Pi Pico on macOS All In One
How to find the "usbmodem" of Raspberry Pi Pico on macOS All In One
errors
/dev/tty.usbmodem0000000000001
not exist bug ❌
# 0000000000001 ❌
$ minicom -b 115200 -o -D /dev/tty.usbmodem0000000000001
官方 SDK 文档 ❌ bug
https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf
solutions
- Terminal
# Linux 查看真实的 tty.usbmodem
# Raspberry Pi 查看真实的 tty.usbmodem ✅
$ lsusb
# macOS 查看真实的 tty.usbmodem
# /dev => devices ✅
$ cd /dev && ls | grep "usbmodem"
cu.usbmodem14601
tty.usbmodem14601
# cu ✅
$ minicom -b 115200 -o -D /dev/cu.usbmodem14601
# tty ✅
$ minicom -b 115200 -o -D /dev/tty.usbmodem14601
- IDE
Thonny
#!/usr/bin/env python3
# coding: utf8
from machine import Pin
from utime import sleep
# 内置 LED 通过 GPIO 25 连接
GPIO_PIN = 25
led = Pin(GPIO_PIN, Pin.OUT)
i = 0
n = 3
print("begin 💡")
while i <= 3:
print("i =", i)
led.toggle()
sleep(1)
led.toggle()
sleep(1)
i += 1
led.low()
# led.value(0)
print("finished 🚀")
Getting started with Raspberry Pi Pico
Learn how to use your Raspberry Pi Pico with Thonny
and MicroPython
https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/2
Projecs of Raspberry Pi
https://projects.raspberrypi.org/en/
https://projects.raspberrypi.org/en/projects
LED
https://projects.raspberrypi.org/en/projects/scratch-3d-science
https://projects.raspberrypi.org/en/projects/scratch-3d-science/1
https://projects.raspberrypi.org/en/projects/scratch-led-game
https://projects.raspberrypi.org/en/projects/scratch-led-game/1
https://projects.raspberrypi.org/en/projects/beating-heart
https://projects.raspberrypi.org/en/projects/beating-heart/1
https://projects.raspberrypi.org/en/pathways/physical-computing-with-scratch-and-the-raspberry-pi
zh-CN
翻译 Raspberry Pi
https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/2
该项目尚无您所使用语言的版本 — 帮助我们翻译!
https://projects.raspberrypi.org/zh-CN/projects/getting-started-with-the-pico/2
https://www.raspberrypi.org/translate/
https://www.raspberrypi.org/translate/community-members/
https://projects.raspberrypi.org/en/projects/translating-for-raspberry-pi
refs
minicom
https://www.cnblogs.com/xgqfrms/p/17275859.html
©xgqfrms 2012-2025
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17277209.html
未经授权禁止转载,违者必究!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
2022-03-31 TypeScript singleton pattern All In One
2022-03-31 自如电信 WIFI 路由器设置 All In One
2022-03-31 GitHub Codespaces All In One
2022-03-31 SVG watermark generator All in One
2021-03-31 如何在 uni-app 里面使用 echarts All In One
2021-03-31 Jest & TypeScript
2021-03-31 auto convert cURL to Fetch All In One