Package hw
Class IO

Public Method setRotaryEncoderPeriod

static void setRotaryEncoderPeriod(int value)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
value 2 ... 25 10 millisecond steps

This method sets the measurement period. A new value is provided by the getRotaryEncoderValue() after this period.

Note

Example

  IO.setRotaryEncoderPeriod(20);

The example above sets the encoder period to 200 milliseconds.

See also:

getRotaryEncoderValue()
setRotaryEncoderEnabled(boolean)
setRotaryEncoderReportingEnabled(boolean)