updateFrame(frame, System.currentTimeMillis() - start, index);
updateWithFrame(frame);
index = (index + 1) % config.leds.getCount();
updateFrame(frame, System.currentTimeMillis() - start, index);
updateWithFrame(frame);
index = (index + 1) % config.leds.getCount();