Well, it may have seemed more complicated than it really was, but finally, you have your programming environment ready to work. It's time to create our first test, take a tour of it, and meet all its parts and structures.
On the first run, the Arduino development environment should look like this:
Basically, it's divided into three sections:
Let's take a closer look at each one of these zones so that you can begin to use them.
In the toolbar, you're going to find a total of six buttons to call the more usual commands of the development environment.
From the left-hand side to the right-hand side, they are as follows:
The code editor is the zone where most of your work will happen and where you will spend most of your time.
It is a multitab editor, which means that you can open more than one document at the same time on different tabs. You can find a small downward-pointing arrow icon on the right-hand side of the tabs area that unfolds a menu with different tab-related options, such as New and Rename, or helps you move along the currently opened tabs.
It is not a very powerful editor but has all the features that one can hope to find in a modern code editor nowadays, such as syntax highlighting, which means that the different parts and words of your code are going to be presented in different colors that will help you classify the different elements in it, making it clear what a reserved word, a variable, or a constant is.
Another feature I really appreciate and that makes your work much more comfortable is the highlighting of parentheses and bracket pairs when you put the cursor over one of them so that you can easily view the opening/closing pair of such constructions.
These features apart, there are some other useful commands, such as Search in Reference, that take the word under the cursor and look for it in the Arduino Language Reference section on the Arduino website, showing you the help page of the reserved word or function.
There are other stylistic commands, such as Increase Indent, Decrease Indent, and Comment/Uncomment, which are available through the pop-up menu that is shown when you right-click on the editor area.
The message area is the zone where the Arduino development environment will tell you which errors it has found when trying to compile your code or any other issues it has found when trying to accomplish the command you asked for, for example, a communication error when uploading the machine code to the microcontroller board.
When the error is related to a line in your code, this will also be highlighted in the code editor, as shown in the previous screenshot.
The Arduino development environment will try its best to reference in the message area the line number where it thinks the error is. I say thinks, because the mistake is not always correctly located and, in some cases, it can be one or two lines before the line the message area is reporting. This is a typical situation when programing in C, but we will talk about it later on.
18.224.62.105