def startup(self): # funciton that starts th GPIO board and pin required
GPIO.setmode(GPIO.BOARD)
GPIO.setup(self.channel, GPIO.OUT)
self.pwm = GPIO.PWM(self.channel, self.frequency)
self.pwm.start(self.frequency)
评论列表
文章目录