Hi if you can send me the notes and values to turn various colors on and off (or the manual that show it), I should be able to help you put a translator example that you can use so that when you send note-on messages, it can toggle values. What device or software are you using to send midi messages to your APC mini?
I just found it,
note on with velocity 0 is off
note on with velocity 1 is green 2 is green blink
note on with velocity 3 is red 4 is red blink
note on with velocity 5 is yellow 6 is yellow blink
so what two states (colors) do you want to toggle?