Jerrymc3
10-16-2013, 10:18 PM
How do you use the testbit function to turn off rather than turn on a led?
EX. This is on the Project Magenta B747-400 Overhead Panel
Var 0590, name DRIVE_DISC, Link FSUIPC_INOUT, Offset $5635, Length 2
{
V0631 = TESTBIT V0590 ,4 I want this led (V0631) to turn off when
V0632 = TESTBIT V0590 ,4 this led (V0632) turns on and vise versa
V0633 = TESTBIT V0590 ,5
V0634 = TESTBIT V0590 ,5
V0635 = TESTBIT V0590 ,6
V0636 = TESTBIT V0590 ,6
V0637 = TESTBIT V0590 ,7
V0638 = TESTBIT V0590 ,7
}
Jerry
EX. This is on the Project Magenta B747-400 Overhead Panel
Var 0590, name DRIVE_DISC, Link FSUIPC_INOUT, Offset $5635, Length 2
{
V0631 = TESTBIT V0590 ,4 I want this led (V0631) to turn off when
V0632 = TESTBIT V0590 ,4 this led (V0632) turns on and vise versa
V0633 = TESTBIT V0590 ,5
V0634 = TESTBIT V0590 ,5
V0635 = TESTBIT V0590 ,6
V0636 = TESTBIT V0590 ,6
V0637 = TESTBIT V0590 ,7
V0638 = TESTBIT V0590 ,7
}
Jerry