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
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
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-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17277209.html
未经授权禁止转载,违者必究!

浙公网安备 33010602011771号