steppertest.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:rpi-film-capture 作者: jphfilm 项目源码 文件源码
def pwmtest(i):
    for freq in [200, 400, 800, 1600, 3200]:
        p1 = GPIO.PWM(pulse_pin, freq)
        logging.debug(freq)
        p1.start(10)
        logging.debug('started')
        time.sleep(i)
        logging.debug('stopping')
        p1.stop()
        logging.debug('stopped')
        time.sleep(2)

#time.sleep(2)
#pwmtest(4)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号