On dark turn Led on and off in an hr

Post your code so we are not debugging in the dark.