A programmer can use DIP switches to control LED lights in a program by using the IF/ELSE statement to check for specific conditions and setting the LED light accordingly. For example, when a certain DIP switch is set to “0”, the programmer can then turn on the LED light and when it is set to “1”, the LED light can be turned off.