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 ...

Get Arduino Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.