EasyManua.ls Logo

Element14 mi:node - Page 18

Default Icon
32 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
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;