Rotary Encoder or Switch
Posted: 05 Apr 2013, 14:12
I am trying to implement a rotary encoder as a script. Turning clockwise, the encoder will press A then B, anti-clockwise will press B then A.
Thus, keypress A followed by keypress B should increase my OBS (VOR1_OBI_INC) and B followed by A should decrease OBS (VOR1_OBI_DEC).
I can only think of using the If...Then...Else Statement, I am not sure how.
Johan
Thus, keypress A followed by keypress B should increase my OBS (VOR1_OBI_INC) and B followed by A should decrease OBS (VOR1_OBI_DEC).
I can only think of using the If...Then...Else Statement, I am not sure how.
Johan