Speed optimization

The LED switching has to be very fast.