SWITCHED INPUT LED TEST CODE