updated the code to create a default setting to flash lights while waiting for input