Scales the available movement range of the servo to be a subset of its maximum range. Subsequent positioning calls will operate within that subset range. This is useful if your servo has only a limited useful range of movement due to the physical hardware that it is manipulating (as is often the case) but you don't want to have to manually scale and adjust the input to setPosition() each time.
For example, if scaleRange(0.2, 0.8) is set; then servo positions will be scaled to fit in that range:
setPosition(0.0) scales to 0.2
setPosition(1.0) scales to 0.8
setPosition(0.5) scales to 0.5
setPosition(0.25) scales to 0.35
setPosition(0.75) scales to 0.65
Note the parameters passed here are relative to the underlying full range of motion of the servo, not its currently scaled range, if any. Thus, scaleRange(0.0, 1.0) will reset the servo to its full range of movement.
min - the lower limit of the servo movement range, a value in the interval [0.0, 1.0]
max - the upper limit of the servo movement range, a value in the interval [0.0, 1.0]