O'Reilly logo

Arduino Essentials by Francis Perea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required