2839| 0
|
BPI-PicoW-S3 点亮,熄灭,闪烁LED灯(CircuitPython) |
BPI-Pico-S3 与 Raspberry Pi Pico 板尺寸相同,搭载ESP32S3芯片,8M flash,4层PCB,电镀半孔工艺,陶瓷天线,支持 2.4 GHz Wi-Fi 和 Bluetooth® LE 双模无线通信,是一款专为物联网开发和Maker DIY设计的开发板。 出厂内置 tinyUF2 + CircuitPython,推荐使用Mu编辑器上手CircuitPython开发。 BiliBili视频演示https://www.bilibili.com/video/av774666867 硬件接口示意图使引脚输出高低电平,控制LED
import digitalio ledpin = digitalio.DigitalInOut(board.LED) ledpin.direction = digitalio.Direction.OUTPUT ledpin.value = True
import digitalio ledpin = digitalio.DigitalInOut(board.LED) ledpin.switch_to_output(value=True) # value=1
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)
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> >>>
购买BPI-PicoW-S3:
|
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed