Class RotaryEncoderHelper

java.lang.Object
com.opensourcewithslu.inputdevices.RotaryEncoderHelper

public class RotaryEncoderHelper extends Object
The RotaryEncoderHelper class initializes a rotary encoder component and returns the value of the encoder when called upon.
  • Constructor Details

  • Method Details

    • initialize

      public void initialize()
      Initializes the listener that keeps track of the rotary encoder's position. Automatically called when the RotaryEncoderHelper is instantiated.
    • getEncoderValue

      public int getEncoderValue()
      Gets the value of the rotary encoder.
      Returns:
      The value of the rotary encoder.