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.
LED gear lights
Re: LED gear lights
Why is this reported as a 'bug' ?
It is a generic piece of code !
If you want to make that happen then change / adapt the code for your specific use.
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.
-
- Posts: 5339
- Joined: Thu Jul 27, 2017 12:22 am
Re: LED gear lights
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=15AlyMac 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.
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
Re: LED gear lights
Thanks for the find. I've uploaded a new version which looks at bus voltage as well.