.rotary


DESCRIPTION
Returns the direction of the rotary.

There are 3 different states for the rotary to be: not moving, moving forward and moving backward.


SYNTAX
lcd.rotary();


PARAMETERS
none


RETURNS
A byte with a value from 0 to 2
if returns a 0, the rotary did not move
if 1 the rotary moved forward
if 2 the rotary moved backward


EXAMPLE


SEE ALSO
  • .swTop
  • .swBottom
  • .swRotary
  • .rotaryClick