User Manual V3.1
Element14 | element14.com/minode
18
Image 3.4d – Rotary Module
Module
Connect Type
Available Connectors
Rotary Sensor
Analog
A0, A1, A2
Electrical Characteristics
Parameter
Min. Typical Max. Unit
Resistance range 0
-
10
kΩ
Block API
Obtain the Rotary Position
Determine the current rotary position, the percentage of how much the rotary dial has
been rotated from its zero position.
Function
RotaryGetPercentage(connName: AnalogConnName): number;
Parameters
‘ConnName’ is the analog connector's name.
Rotary Position Event
Check the angle of the rotary dial periodically and then execute the associated code block
when a dial change occurs.
Function
onRotaryEvent(connName: AnalogConnName, body: () => void): void;