3715| 0
|
BPI-PicoW-S3 PWM调光,呼吸灯[CircuitPython] |
本帖最后由 RookieC 于 2022-11-9 10:57 编辑 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视频: 硬件接口示意图PWM输出,控制LED亮度
import pwmio ledpin = pwmio.PWMOut(board.LED, frequency=25000, duty_cycle=0) ledpin.duty_cycle = 32768 # mid-point 0-65535 = 50 % duty-cycle
import pwmio import time ledpin = pwmio.PWMOut(board.LED, frequency=25000, duty_cycle=0) while True: for i in range(0, 65535, 1): ledpin.duty_cycle = i for i in range(65535, 0, -1): ledpin.duty_cycle = i BPI-PicoW-S3 + CircuitPython 教程聚合链接: https://forum.banana-pi.org.cn/t/topic/3986?u=wind_ BPI-PicoW-S3 wiki 页面: https://wiki.banana-pi.org/BPI-PicoW-S3 购买BPI-PicoW-S3 :
|
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed