Encoder functions in the rotaryPulse category. Information on this category here.
rotaryPulse()
Standard incremental encoder setup. Rotating CW will give a button pulse, rotating CCW will give a button pulse with a button number 1 value higher.
void rotaryPulse(int row, int column, bool reverse)
For an encoder with pins A and B to columns 3 and 4. Common pin to row 2:
rotaryPulse(2, 3, false);
The button numbers used is determined by the number written in the block for the A pin. B pin block will not be read. If button number was set to 15, the switch will use buttons 15 and 16. The reverse part of the function will switch the button numbers if set to true.
2 button numbers
rotaryPulseBite()
Standard incremental encoder setup. Rotating CW will give a button pulse, rotating CCW will give a button pulse with a button number 1 value higher.
In addition, this switch can set the bite point of your clutches. Works in combination with biteButton(). The button presses will not trigger when setting bite point.
void rotaryPulseBite(int row, int column, bool reverse)
For an encoder with pins A and B to columns 3 and 4. Common pin to row 2:
rotaryPulseBite(2, 3, false);
The button numbers used is determined by the number written in the block for the A pin. B pin block will not be read. If button number was set to 15, the switch will use buttons 15 and 16. The reverse part of the function will switch the button numbers and increase/decrease bite point if set to true.