On the Subject of Flipping Squares

With every added move, the search space just... blows up.

Press any square to perform a flip.

Long-press (> .3 sec) any square to return to the original configuration.

Use the first character of the serial number to determine which configuration the arrows need to be in (the dot is the status light):

0/O
1/I
2/G
3/H
4/J/W
5/K
6/L
7/M
8/N
9/P/X
A/Q
B/R/Y
C/S
D/T
E/U
F/V/Z

Use the last character of the serial number to determine which configuration the colors need to be in:

0/8
R O Y G C Z B P I
1/9
B G R P C O I Z Y
2
I P B Z C G Y O R
3
Y Z I O C P R G B
4
Y O R Z C G I P B
5
R G B O C P Y Z I
6
B P I G C Z R O Y
7
I Z Y P C O B G R

Colors are: R = red, O = orange, Y = yellow, G = green, C = cyan, Z = azure, B = blue, P = purple, I = pink.

The solution can always be performed in no more than 4 flips.