def set(self, value):

        if value > 1.0:
            value = 1.0
        elif value < 0.0:
            value = 0.0
        self.value = value

        if value == 0.0:
            self._stopped = True
            io.output(self.pin_number, io.LOW)
        elif value == 1.0:
            self._stopped = True
            io.output(self.pin_number, io.HIGH)
        else:
            self._stopped = False
            if not self._thread.is_alive():
                self._thread = threading.Thread(target=self._worker)
                self._thread.start()
Parameters
dataset/ETHPy150Open jminardi/RobotBrain/robot_brain/actuators/pwm_actuator.py/PWMActuator.set