I do apologize I have not explained myself very clearly or what I wish/expect
for simplicity i will use a single sim operation (aerosoft A320 OVH Panel Fuel LH TK Pump 1)
I currently use a Latched Illuminated Switch to turn on or off the Fuel pump ( this is already possible as I do have the offset and I currently use LINDA and fsuipc to operate the switch and interface with the sim)
As the LED circuit and the Switch circuit are NOT connected and could be considered as two separate items just housed in the same plastic shell, the led does not require and change in status of the switch to operate it can be illuminated via a 12v power supply.
I would like to use Mobiflight to interface the arduino and the sim allowing me to assign a button to the sim OVH panel and operate the LH Fuel TK Pump1.
This I can do by setting up an output Button (pin 53) to the fsuipc function for OVH Panel LH Fuel Pump1. so far so good.
Illuminating the led, using the Mobiflight to control the relay feeding the 12v supply using output pin2, this works fine
Is it possible to use Mobiflight to send a signal to OUTPUT pin 2 changing it from HI to LO and back depending on
(A) the status of input (HI/LO) PIN 53
(

the status of the sim function OVH Panel Fuel LH TK Pump1
obviously not correct code syntax but something like this
basically
Set pin 53 HI function Fuel Pump1 on
or
Set pin 53 LO function Pump1 off
if pin 53 HI
then set pin 2 HI
if PIN2 HI then relay open // led illuminate on
if pin 53 LO
then set pin 2 LO
if pin 2 LO then relay closed //led illuminate off
or
Read FSuipc function?
if fsuipc function LH TK Pump1 on
then set pin 2 HI
if PIN2 HI then relay open // led illuminate on
if fsuipc function LH TK Pump1 off
then set pin 2 lol
if pin 2 LO then relay closed //led illuminate off
A further question could a Precondition be used ?
I hope this explains what I wish to achieve
I do not see why not because if a landing gear lever (Physical Switch )can be operated to "raise the gear" while the same action from a (physical switch) will also illuminate leds that indicate Gear locked down or in transition.
So swap the gear operation up or down for a Pump on or off and the LED on or off for a relay pin hi or low ?
Regards and many thanks for your help
Steve