In this lesson, we'll consider buttons as objects, create a class for them.
In this lesson we will learn how to handle the button signal to eliminate switch bounce.
In this lesson we will write the first program, learn how to read the value of digital inputs and set the state of the outputs. We realize control of such simple elements as a button and an LED.
This lesson provides the minimum knowledge necessary for programming Arduino systems in C language. You can only view it and use it as reference information in the future. Those who have programmed on C in other systems can skip the article.
The lesson describes how to install the software to work with the Arduino system under Windows 7, how to connect the board to the computer and download the first program.
The article tells about Arduino UNO R3 controller, chosen for demonstration of lessons programs. Now it is not necessary to carefully study this information. I recommend that you skim it over to get an idea about the hardware of the system. In the future, this article can be used as reference information.
As a professional microcontroller programmer, I do not think Arduino controllers are a good element for developing complex systems. But I quite appreciated the simplicity of developing projects in this system, the simplicity of learning, writing programs, the convenience of using ready-made hardware modules.