LED gear lights

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
AlyMac
Posts: 32
Joined: Mon Apr 05, 2021 3:12 pm

LED gear lights

#1 Post by AlyMac »

Windows - X-plane 11 / 12
Just hooked up my LED's for the gear lights through Arduino.
Is it intentional that the lights do not go out when the battery is switched off?
Oil pressure, Fuel Pressure and generator lights are all ok - they switch off when the battery is switched off.

User avatar
jph
Posts: 2853
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: LED gear lights

#2 Post by jph »

Why is this reported as a 'bug' ? :shock: :?
It is a generic piece of code !
If you want to make that happen then change / adapt the code for your specific use.
Joe. CISSP, MSc.

SimPassion
Posts: 5338
Joined: Thu Jul 27, 2017 12:22 am

Re: LED gear lights

#3 Post by SimPassion »

AlyMac wrote: Mon Nov 07, 2022 2:11 pm Windows - X-plane 11 / 12
Just hooked up my LED's for the gear lights through Arduino.
Is it intentional that the lights do not go out when the battery is switched off?
Oil pressure, Fuel Pressure and generator lights are all ok - they switch off when the battery is switched off.
As reported by Joe, this isn't a bug, so improper section for this thread, rather post in the Lua & Scripting Help : https://siminnovations.com/forums/viewforum.php?f=15
Anyway, one way when binding gear lights to Arduino and get them lighted off when Battery is OFF, is to subscribe to Battery dataref and when the value goes to 0, use hw_led_set(gear_side_led_id,0)
https://siminnovations.com/wiki/index.p ... Hw_led_set

User avatar
Ralph
Posts: 7917
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: LED gear lights

#4 Post by Ralph »

Thanks for the find. I've uploaded a new version which looks at bus voltage as well.

Post Reply