--[[
Author: NeoLux
Version: 1.1.0 (Mar 10 2021)
]]
local startupComplete = false
dataref("startup_running", "sim/operation/prefs/startup_running", "writable", 0)
if startup_running == 0 then
if PLANE_ICAO == "A319" or PLANE_ICAO == "A321" then
function displayBrightness()
--DATAREF FETCH
dataref("pfdLeftLight", "AirbusFBW/DUBrightness", "writable", 0)
dataref("pfdRightLight", "AirbusFBW/DUBrightness", "writable", 1)
dataref("ndLeftLight", "AirbusFBW/DUBrightness", "writable", 2)
dataref("ndRightLight", "AirbusFBW/DUBrightness", "writable", 3)
dataref("ecamUpperLight", "AirbusFBW/DUBrightness", "writable", 4)
dataref("ecamLowerLight", "AirbusFBW/DUBrightness", "writable", 5)
dataref("mcduLeftLight", "AirbusFBW/DUBrightness", "writable", 6)
dataref("mcduRightLight", "AirbusFBW/DUBrightness", "writable", 7)
dataref("pfdLeftLight_anim", "ckpt/lights/pfdLeft/anim", "writable", 0)
dataref("pfdRightLight_anim", "ckpt/lights/pfdRight/anim", "writable", 0)
dataref("ndLeftInnerLight_anim", "ckpt/lights/ndInnerLeft/anim", "writable", 0)
dataref("ndLeftOuterLight_anim", "ckpt/lights/ndOuterLeft/anim", "writable", 0)
dataref("ndRightInnerLight_anim", "ckpt/lights/ndInnerRight/anim", "writable", 0)
dataref("ndRightOuterLight_anim", "ckpt/lights/ndOuterRight/anim", "writable", 0)
dataref("ecamTopLight_anim", "ckpt/fped/efisBritTop/anim", "writable", 0)
dataref("ecamBottomLight_anim", "ckpt/fped/efisBritBotom/anim", "writable", 0)
--START
pfdLeftLight = 1
pfdLeftLight_anim = 270
pfdRightLight = 1
pfdRightLight_anim = 270
ndLeftLight = 1
ndLeftInnerLight_anim = 270
ndLeftOuterLight_anim = 270
ndRightLight = 1
ndRightInnerLight_anim = 270
ndRightOuterLight_anim = 270
ecamUpperLight = 1
ecamTopLight_anim = 270
ecamLowerLight = 1
ecamBottomLight_anim = 270
mcduLeftLight = 1
mcduRightLight = 1
startupComplete = true
end
if startupComplete == false then
do_sometimes("displayBrightness()")
end
end
end