Moved LED code to its own file