#Require LED on when code is 'FALSE'

1 messages · Page 1 of 1 (latest)

jolly oriole
#

I'm coding an output light for the Fenix A320 AP status ... for AP ALT status for example. I want the light to be on when only in SELECT mode i.e. whenever it's NOT in MANAGED mode.

I have chosen to use the A320 FCU ALTITUDE MANAGED DOT code (L:I_FCU_ALTITUDE_MANAGED) ... which 'as is' would turn my AP status light ON when the managed dot is showing. However, I want the light to be ON only whenever the managed dot is NOT showing. What's the syntax for that? ... do I just add ! 1 at the end i.e. (L:I_FCU_ALTITUDE_MANAGED) ! 1

jolly oriole
#

or ... should the following achieve my objective?
if((L:I_FCU_ALTITUDE_MANAGED)=1,0,1)

jolly oriole
#

Thanks a million, do you mean just add a ! (including a space before it) at the end of the original line? ... as per below:
(L:I_FCU_ALTITUDE_MANAGED) !

shadow musk
#

Yes, space and exclamation sign