diff --git a/Software/Python/easysensors.py b/Software/Python/easysensors.py index b463d453..f798d285 100644 --- a/Software/Python/easysensors.py +++ b/Software/Python/easysensors.py @@ -482,10 +482,9 @@ def write(self, power): """ self.value = power - return_value = self.gpg.set_grove_pwm_duty(self.get_pin(), - power) - return return_value + self.gpg.set_grove_pwm_duty(self.get_pin(), power) + def write_freq(self, freq): """ Sets the frequency of the PWM signal.