Chapter 5. Functions and Files with Arduino

In this chapter, we will learn about functions and file handling with Arduino. In the previous chapter, we learned about loops and conditions, which will be used in this chapter too. If you skipped the previous chapter, I would suggest you go through it, and come back to this chapter later. Let's begin out journey into Functions and Files with Arduino.

Functions

Do you know how to make instant coffee? Don't worry; I know. You will need some water, instant coffee, sugar, and milk or creamer. Remember, we want to drink coffee, but we are doing something that makes coffee. This procedure can be defined as a function of coffee making. Let's finish making coffee now. The steps can be written as follows:

  1. Boil ...

Get Learning C for Arduino 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.