EdBot.py 文件源码

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

项目:CamJam-Robotic_kit 作者: Corteil 项目源码 文件源码
def __init__(self, pin_fw, pin_bw):
        self._invert = False
        self.pin_fw = pin_fw
        self.pin_bw = pin_bw
        self._speed = 0

        GPIO.setup(self.pin_fw, GPIO.OUT, initial=GPIO.LOW)
        GPIO.setup(self.pin_bw, GPIO.OUT, initial=GPIO.LOW)

        self.pwm_fw = GPIO.PWM(self.pin_fw, 100)
        self.pwm_fw.start(0)

        self.pwm_bw = GPIO.PWM(self.pin_bw, 100)
        self.pwm_bw.start(0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号