Summary
We have seen lots of concepts related to not only time in this chapter, but also some hardware and programming concepts.
Mainly, we have learned about the different time functions the Arduino library gives us to use in our sketches and the difference between waiting with delay() and delayMicroseconds() and accounting with millis() and micros().
From the hardware point of view, we have connected a speaker to Arduino in two different ways: directly and through a transistor.
To use a speaker, we saw the use of the tone() and noTone() functions and their features.
Talking about programming, we learned to divide our code into different files and into different functions inside a file, which is a very common technique that will help you construct ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access