Lua scripting the LED lights

Hello Everyone,

Can I have some help here that I can’t find on the forum or maybe I missed it again.

I have setup lua roll script on a plane(Matek765wing) and it is working. but It works for a while then stopped changing its color by rolling change(normal on the ground). also, can I assign a switch to turn on and off this LED lights. how to do so.

Here is the param file and the lua script that I am currently using. 20210827_bix3X2_F765wing.param (27.4 KB) led_roll_fixed.lua (2.2 KB)