The led's colors should be associated to different colors such as
green being awake weapon ready to shoot,
Dimmed white being deep sleep and
red being an error indicator in the weapon's system (like pulling the trigger but the shot sensor registers not shot, loss of wifi connectivity or just an exception in the code) or just the input of a wrong unlock touch sequence or missing connectivity to specified wifi/bluetooth devices. So red indicates any kind of error.
Violet should indicate an empty mag given the number shots fired
The led's colors should be associated to different colors such as