Try the following
Now that we have reached the end of this chapter, let us try to perform some interesting self-learning exercises. These exercises have been devised to simulate your thoughts and enable to utilize what you have learnt so far.
- Increase the delay between the blinking of the on-board LED to 2 seconds by using the statement delay(2000) in the
loop()
function. - Decrease the delay between the blinking of the LED to 0.5 seconds. Remember 1 second = 1000 milliseconds.
- Wrap the LED blinking portion of the code in a
for
loop, to run 10 times.