We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff65be commit 6c35a53Copy full SHA for 6c35a53
Adafruit_GPIO/PWM.py
@@ -46,7 +46,7 @@ def start(self, pin, dutycycle, frequency_hz=2000):
46
if dutycycle < 0.0 or dutycycle > 100.0:
47
raise ValueError('Invalid duty cycle value, must be between 0.0 to 100.0 (inclusive).')
48
# Make pin an output.
49
- self.rpi_gpio.setup(12, self.rpi_gpio.OUT)
+ self.rpi_gpio.setup(pin, self.rpi_gpio.OUT)
50
# Create PWM instance and save a reference for later access.
51
self.pwm[pin] = self.rpi_gpio.PWM(pin, frequency_hz)
52
# Start the PWM at the specified duty cycle.
0 commit comments