divided matrix control into two blocks. Changed color management (starting with MSB). Added a generic parameter (bits_per_color). Added a generic parameter (nb_panels, untested).