BPI-Pico-S3 与 Raspberry Pi Pico 板尺寸相同,搭载ESP32S3芯片,8M flash,4层PCB,电镀半孔工艺,陶瓷天线,支持 2.4 GHz Wi-Fi 和 Bluetooth® LE 双模无线通信,是一款专为物联网开发和Maker DIY设计的开发板。
出厂内置 tinyUF2 + CircuitPython,推荐使用上手CircuitPython开发。
BiliBili视频演示https://www.bilibili.com/video/av774666867
硬件接口示意图使引脚输出高低电平,控制LED
board.LED控制着PicoW-S3上的一颗单色LED发光二极管,高电平点亮,低电平熄灭,在REPL中输入以下代码:
import board
import digitalio
ledpin = digitalio.DigitalInOut(board.LED)
ledpin.direction = digitalio.Direction.OUTPUT
ledpin.value = True
或者这么做:
import board
import digitalio
ledpin = digitalio.DigitalInOut(board.LED)
ledpin.switch_to_output(value=True) # value=1
让LED间隔0.5秒闪烁:
import board
import digitalio
import time
ledpin = digitalio.DigitalInOut(board.LED)
while True:
ledpin.switch_to_output(value=1)
time.sleep(0.5)
ledpin.switch_to_output(value=0)
time.sleep(0.5)
在REPL中使用中断快捷键即可停止程序的运行。
在Mu编辑器的REPL界面输入import board;help(board)即可列出所有可控制的引脚。
>>> import board;help(board)
object <module 'board'> is of type module
__name__ -- board
board_id -- bpi_picow_s3
GP0 -- board.GP0
GP1 -- board.GP1
GP2 -- board.GP2
GP3 -- board.GP3
GP4 -- board.GP4
GP5 -- board.GP5
GP6 -- board.GP6
GP7 -- board.GP7
GP8 -- board.GP8
GP9 -- board.GP9
GP10 -- board.GP10
GP11 -- board.GP11
GP12 -- board.GP12
GP13 -- board.GP13
GP14 -- board.GP14
GP15 -- board.GP15
GP16 -- board.GP16
GP17 -- board.GP17
GP18 -- board.GP18
GP19 -- board.GP19
GP20 -- board.GP20
GP21 -- board.GP21
GP22 -- board.GP22
GP25 -- board.GP25
LED -- board.GP25
GP26 -- board.GP26
GP26_A0 -- board.GP26
A0 -- board.GP26
GP27 -- board.GP27
GP27_A1 -- board.GP27
A1 -- board.GP27
GP28 -- board.GP28
GP28_A2 -- board.GP28
A2 -- board.GP28
GP29 -- board.GP29
GP29_A3 -- board.GP29
A3 -- board.GP29
NEOPIXEL -- board.NEOPIXEL
TX -- board.GP0
RX -- board.GP1
BOOT0 -- board.BOOT0
UART -- <function>
>>>
board.GP25 与 board.LED完全相同。
购买BPI-PicoW-S3:
:https://www.aliexpress.com/item/1005004775634442.html
:https://www.aliexpress.com/item/1005004775859077.html
:https://item.taobao.com/item.htm?spm=a2126o.success.0.0.25b04831CHV1Nc&id=684134360199
OEM&OEM 定制服务: sales@banana-pi.com
:https://forum.banana-pi.org.cn/c/bpi-bit/micropython/135
:https://forum.banana-pi.org.cn/t/topic/3981