[solved] Code optimization

Can someone help me make this work faster ?

Every time you call matrix.show(), data for all (256?) pixels needs to be sent. If you set 16 pixels, and then call matrix.show(), you will see a significant speed up.