Programming an LED array