Skip to content

setValue()

Set the rotary's value.

Moves the knob to match, and calls its update function.

Parameters

Once an object rotary has been created, you can use the following function:

rotary.setValue(newValue)
Parameter Type Default Description
newValue int or float required The new value, between the rotary's minValue and maxValue.