plugged in the LED control in the main loop