def setPosition(self, pos: float) -> None: """Set the PWM value based on a position. This is intended to be used by servos. .. note:: :func:`setBounds` must be called first. :param pos: The position to set the servo between 0.0 and 1.0. """ hal.setPWMPosition(self.handle, pos)