Desiging and controlling LED matrix of any size