Controll WS2812 led strip on a copter with a terminal or graphic interface(changing color)

Hello, this is my first post on this website. So, i want to make a project which consists in change the color of a led strip on a copter by typing the value of R,G,B on a computer and then send it to the flight controller. I know that it’s possible by writing a lua script but the problem is that the lua script run one time and doesn’t accept any input from outside.I search some solution from python script to Lua script but i didn’t find nothing . Anyone can help me? Thanks