How to control AP_Periph's NeoPixel LEDs with lua script running on the FC board?

I have a fixed-wing plane with ws2812 LEDs on the wing. The LEDs are connected to the outputs from a peripheral board. I want to control the LEDs so that the left wings blink red and the right blink green.

Can I run lua script on the FC board in order to control LEDs on the AP_Periph board? If not, can I run script on the AP_Periph board without SD card? Assuming the peripheral board is Matek-L431-Periph.