Description:
Returns | Range | Description |
---|---|---|
value | -128 ... 127 | measured encoder values within the timeout period |
A positive or negative value is returned by the getRotaryEncoderValue() method. The returned value depends on the direction and the speed of the encoder movement and also on the adjusted period (setRotaryEncoderPeriod(int)). The returned value will be greater if the encoder is turned faster. This counts for positive returned values when the encoder is moved in one direction. A negative value will be provided if the encoder is moved in the other direction. In this case the value will be smaller if the encoder is moved faster.
Note
Example
byte value = IO.getRotaryEncoderValue();
See also:
IO.setRotaryEncoderPeriod(int)
IO.setRotaryEncoderEnabled(boolean)
IO.setRotaryEncoderReportingEnabled(boolean)
Copyright © demmel products gmbh. All rights reserved.