logo

官网给的光源拓展板的例程会报错?

2021-03-21 10:17
B
澈泉
import time
from pyb import Pin, Timer

# 50kHz pin6 timer2 channel1
light = Timer(2, freq=50000).channel(1, Timer.PWM, pin=Pin("P6"))
light.pulse_width_percent(100) # 控制亮度 0~100

while (True):
    time.sleep_ms(1000)
bd7e344b-a8b0-4e51-a566-b3c87b9b3dab.png
2021-03-22 14:19
I
网红小智智 星瞳科技

https://singtown.com/openmv-download/

下载新的IDE,更新到新的固件。