Hello Guys, first, i want to say sorry because of my bad english... I am from germany, so i hope you will forgive me and understand anyway. I guess, for experienced developer, my problem is very easy to solve, but i am beginner here, and dont really know, where is my failure, that my experiment does not work. First to know, i am working with the Aerosoft Airbus. There i want to learn, how to build Cockpit Elements. I made it work, to use a button with an Arduino Board, that made an action in Flight Simulator. Now i want to build a Light, for Example my APU Master Button Light. Here i wrote this Code:
if ipc.readLvar("L:AB_OVH_APU_MASTER") == 1 then
ipc.writeUB(0x565D, 1)
else
ipc.writeUB(0x565D, 0)
end
I wrote this in the "Timer" Funktion of the System Funktions in the Aerosoft Airbus actions.lua file. But there is no reaction on my Offset, when i change the LVars. The other way, to change Lvars with Offsets works good, so i made it working to use Buttons. But i want to get visual Feedbacks on my Cockpit Parts.
So maybe you know, whats going wrong there.
I hope you have the answers
Greetings
Phil