Hi, could you send here an example.
For example, i have a luafiles who contain 2 functons :
PMDGBaseVar = 0x00011000 -- 69632
PMDG_ClkL = 0x20000000 -- 536870912
PMDG_ClkR = 0x80000000 -- -2147483648
PMDG_dec = 0x00002000 -- 8192
PMDG_inc = 0x00004000 -- 16384
PMDG_RelL = 0x00020000 -- 131072
PMDG_RelM = 0x00040000 -- 262144
PMDG_RelR = 0x00080000 -- 524288
-- Toggle CMDA
function NGX_AP_CMDA_toggle ()
ipc.control(PMDGBaseVar+402, PMDG_ClkL)
end
-- Toggle CMDB
function NGX_AP_CMDB_toggle ()
ipc.control(PMDGBaseVar+403, PMDG_ClkL)
end
How can i call first or second function by Keypress or Button +switches ?
I am in the same case, previously i have separed all function in specific files but i have quicly more than 127 lua files in my module folder.
Thanks for all.
Sky