code: def stop(self, pin):
          
          if pin not in self.pwm:
              raise ValueError('Pin {0} is not configured as a PWM.  Make sure to first call start for the pin.'.format(pin))
          self.pwm[pin].stop()
          del self.pwm[pin]
docs: Stop PWM output on specified pin.