def _worker(self):
        while not self._stopped:
            time_on = self.value * self.period
            time_off = (1 - self.value) * self.period

            io.output(self.pin_number, io.HIGH)
            time.sleep(time_on)

            io.output(self.pin_number, io.LOW)
            time.sleep(time_off)
        return
worker method that is spawned in its own thread
dataset/ETHPy150Open jminardi/RobotBrain/robot_brain/actuators/pwm_actuator.py/PWMActuator._worker