Neopixel copter status script (.lua) for anyone to use

Yesterday i asked on this forum for a simple status script (for neopixel-led use).

-----> Topic
It turned out that i had to write the script myself… and post it here for anyone to use.

Show video

Script Summary:

This script controls a 16-LED strip connected to a vehicle using ArduPilot. It changes the LED patterns based on the vehicle’s arming state:

  • Disarmed State:

LEDs display a predefined pattern that blinks on and off every second.

  • Ready-to-Arm State:

LEDs turn solid blue, indicating the vehicle is ready to arm.

  • Armed State:

LEDs turn solid green, showing the vehicle is armed and ready for operation.

The script continuously monitors the vehicle’s status and updates the LED pattern accordingly. It uses a main loop running every second to check the status and apply the correct LED behavior.

LED_status.lua (2.4 KB)