refactor led outputs to use generate for loop