read rotational speed from the rotary encoder.
obj - rotary encoder object created with rotaryEncoder call.
speed - returned speed in revolutions per minute read from the encoder.
See also: rotaryEncoder, resetCount.
Package: arduino