The LED index logic seems to have been made obsolete by 1846391d. According to Matrix, the RGB value shifts may have been due to using RGB565 previously.