Google EdgeTPU can't get PWM to work with Python
问题 Here is my testing code: from periphery import PWM import time # Open PWM channel 0, pin 0 pwm = PWM(0,0) # Set frequency to 1 kHz pwm.frequency = 50 # Set duty cycle to 75% pwm.duty_cycle = 0.02 pwm.enable() print(pwm.period) print(pwm.frequency) print(pwm.enabled) # Change duty cycle to 50% pwm.duty_cycle = 0.05 pwm.close() Problem is this part: # Open PWM channel 0, pin 0 pwm = PWM(0,0) I can see output when running PWM(0,0) PWM(0,1) PWM(0,2) but I get the error messsage when trying to run