官术网_书友最值得收藏!

  • Mastering Arduino
  • Jon Hoffman
  • 362字
  • 2021-07-23 18:57:53

Exploring the IDE

There are four areas that make up the main development window of the IDE. The following screenshot shows these four areas:

The menu bar for the IDE functions like menu bars in other applications, where you click on one of the options, and a submenu appears with more options. We will look at some of the commonly used menu options as we go through this book.

The command bar provides quick access to five of the most commonly used commands. These commands are, from left to right, verify, upload, new, open and save. The verify command will attempt to compile the sketch in order to verify that there is nothing wrong with the code. The upload command will attempt to build and upload the sketch to the attached Arduino. The new command will create a new sketch. The open command will open a sketch. Finally, the save command will save the sketch.

Note: In order to upload a sketch, you must have an Arduino connected to the computer you are working on and configured in the IDE otherwise you will receive an error. We will look at how to do this in the Configuring the Arduino within the IDE section.

The coding area is where we write the code for the Arduino. You will notice that when we start a new sketch, two functions (setup and loop) are automatically created in the main tab. We will be working with these functions a lot in this book. We will be looking at what these two functions do at the end of this chapter when we create our first sketch.

The status area is used by the IDE to let us know what is happening when the IDE is doing something like compiling, uploading or verifying a sketch.

In order to upload a sketch to an Arduino, we need to connect the Arduino to the computer the IDE is running on with a USB cable and configure it in the IDE. Configuring the Arduino within the IDE requires us to tell it what type of Arduino we are using and what port it is on. Let's see how to do this.

主站蜘蛛池模板: 漯河市| 泗阳县| 富锦市| 莲花县| 通榆县| 和龙市| 普兰店市| 屏东县| 三台县| 闸北区| 隆德县| 崇阳县| 安达市| 拉萨市| 谷城县| 嘉荫县| 云浮市| 阳高县| 古浪县| 德州市| 社会| 大冶市| 和顺县| 岳阳市| 锡林郭勒盟| 囊谦县| 奈曼旗| 南丹县| 庄浪县| 荔波县| 泸水县| 民县| 兖州市| 临沂市| 肥东县| 嘉兴市| 隆回县| 大连市| 右玉县| 布拖县| 衡阳市|