Programming this light to do the tasks given was pretty easy after I understood the code finally. I understood that (1000) equaled 1 second so delaying the light to blink. So keeping the light on forever was easy to do by keeping it on HIGH the whole time. Keeping the light off, I had to put the variables to LOW. For keeping the light on for a second and changing the on and off different for different time periods. This challenge helped me understood the code even better and understanding the effect of the delays.
No comments:
Post a Comment