We have come a long way, and at this point we have seen almost everything regarding digital and analog inputs and outputs. But Arduino still has some unseen characteristics that come in very handy when developing our projects. Controlling the time is one of them and a very important feature for a good number of projects.
In this chapter, we will learn about the functions in the Arduino library to control the time and will also discover sound generation and the use of speakers and buzzers. Every timer has an alarm, doesn't it?
The Arduino library has four functions that allow us to manage the time. We have already seen one of them, the
delay() function, which we have used from our first sketch ...