In this second article on programming with Arduino you will see a fundamental element: the functions and the role they play. At the end of this lesson, you will be able to recognize a function within a sketch, and you will have all the necessary knowledge on how to define them and use them for your purposes and projects.
This article begins a series of posts, or rather, lessons on the programming of Arduino boards. The basic language we will use is the C language, a programming language that has made the history of computing and that many of us have used to develop many projects on many other platforms.
Python is a language that is processed in real time through an interpreter, also called Python. So there is no need to compile the code before executing it.
The Python console is a program that allows you to insert Python commands one line at a time. This is called REPL (Read-Eval-Print-Loop).