Firefly开源社区
标题:
LED实现呼吸灯的效果
[打印本页]
作者:
mmcer
时间:
2016-3-23 14:23
标题:
LED实现呼吸灯的效果
我看 wiki 里有提及 PWM ,但是对内核什么的不懂,请问如何在软件层面实现 LED 的呼吸灯效果。
作者:
sixwww
时间:
2016-7-28 15:44
参考代码
https://github.com/T-Firefly/pyFireflyP/
print('Set PWM1: freq=1MHz,duty=50%')
pwm.set_config(1000,500)
pwm.start()
time.sleep(5)
pwm.stop()
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1