Search found 2 matches

by Ivanstein
Wed Aug 14, 2019 7:38 pm
Forum: openTx
Topic: Lua Widget, SHADOWED and BLINK not working
Replies: 3
Views: 3698

Re: Lua Widget, SHADOWED and BLINK not working

From what I have suffered through and according to the OpenTX Lua programming guide, you need to set up variables used in several functions in the create function to initialize them. Something like: function create(zone, options) local context = {zone=zone, options=options, parameters=parameters} lo...
by Ivanstein
Mon Jul 15, 2019 5:09 am
Forum: openTx
Topic: Lua help, trying to learn, so many questions
Replies: 3
Views: 4450

Lua help, trying to learn, so many questions

I am trying to learn Lua for Open TX and I am faltering. I have some questions, which are probably obvious to the seasoned programmer. I would like to reference the BattCheck widget script that comes as part of OpenTX with the Horus. The fist line is a local variable call: local shadowed = 0 So, why...

Go to advanced search