
Warning light trouble
Warning light trouble
Having a little trouble with my warning light....it won't turn off. I have GPIO 1 set for output providing ground for a LED light. It comes on immediately and stays on, even if all of my scripted parameters are in-line. Can someone check my script please, thanks!:


So, I seemed to have sorted things out. I changed the script formatting to match my accusump script which I knew worked. Also, I had to change getAnalog(8 ) to getAnalog(7) for purposes of reading battery voltage. I'm not quite sure why, as I understood lua-channel 8 to be internal battery voltage on a Mk3 box. Lua-channel 7, which is analog input 8, isn't connected to anything in my setup. At least I believe that interpretation to be correct.
- Attachments
-
- script1.png (166.39 KiB) Viewed 2456 times