i`m trying to turn on the APU on a A320 via hardware buttons,
I can turn on the APS MAster button.
Code: Select all
function apuon_pressed()
print("Master APU on")
xpl_command("a320/Overhead/APU_Master_button")
end
hw_button_add("ARDUINO_MEGA2560_A_D3", apuon_pressed)
Now I want to do the same with den APU Start.
The datarefs and command are similar to the Master ( dataref a320/Overhead/APU_Start; Command a320/Overhead/APU_Start_button).
My code ist therefor is
Code: Select all
function apustart_pressed()
print("Start APU")
xpl_command("a320/Overhead/APU_Start_button")
end
hw_button_add("ARDUINO_MEGA2560_A_D4", apustart_pressed)
I dont know what the problem is, so if there is someone who can help me it would be great.
Thanks
Karl