Rotary Encoder or Switch

Announcements, general discussion
Post Reply
Aeroworx
Posts: 2
Joined: 04 Mar 2013, 00:57

Rotary Encoder or Switch

Post by Aeroworx » 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

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Rotary Encoder or Switch

Post by admin » 08 Apr 2013, 07:51

Timestamp and global variable I would say.
If there's no support for current time in ms in some Active script component, I may add this call to HidMacros object.
Petr Medek
LUAmacros author

Post Reply