Sling,
YEEEEES! IT WORKS! HAHA....I know this is probably so simple and boring to a lot of viewers, but dangit, it's working, haha. I truly appreciate the assistance, and I look forward to using this knowledge on other tasks. This has freed up like 5 of my digital I/O's.
BIG THANKS!
Mikemike
5 position rotary switch
Re: 5 position rotary switch
Great. Glad you got it working.
The AM scripting language is Lua so the <= operator is just a Lua language thing. These are called relational operators. If you want to learn more about these little details of the Lua language this is a good starting point but there are many other good resources.
https://www.lua.org/pil/contents.html#3
The AM scripting language is Lua so the <= operator is just a Lua language thing. These are called relational operators. If you want to learn more about these little details of the Lua language this is a good starting point but there are many other good resources.
https://www.lua.org/pil/contents.html#3
Last edited by Sling on Sat Feb 13, 2021 3:53 am, edited 1 time in total.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: 5 position rotary switch
Perfect!Sling wrote: ↑Sat Feb 13, 2021 3:21 am Great. Glad you got it working.
The AM scripting language is Lua so the <= operator is just a Lua language thing. These are called relational operators. If you want to learn more about these little details of the Lua language this is a good starting point but their are many other good resources.
https://www.lua.org/pil/contents.html#3
Thanks again,
Mikemike
Re: 5 position rotary switch
< and > always have to come first, that's just the way Lua does it.