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

Chapter 1. Getting Started

Since you have picked this book, this means you want to learn both about programming and electronics, especially microcontrollers. The book is designed to enable you to learn C programming easily and implement the language with an Arduino. I would suggest you do every code of the book by yourself and run them on the Arduino IDE. Microcontroller programming was hard before, but since the innovation of Arduino and the use of C programming on the Arduino board, microcontroller programming has become easy and fun.

Before going any further, let's understand the programming language C better. You may wonder why C programming is called C.

Well, before the creation of C, there was its predecessor programming language, called B. So, you should be able to guess from this where the name came from. The B language was developed by Ken Thompson at Bell Labs. At the same lab, the C language was developed in 1972 by Dennis Ritchie. The main purpose of creating this language was to design a UNIX operating system. Ken Thomson and Dennis Ritchie were the main developers of the UNIX operating system, so Dennis developed C to design UNIX.

C is not just a powerful language but a flexible one too. It is a portable language, because we can write a C program on one computer and compile to another with almost no modification.

To compile the source code of C, we need to have an IDE installed to our computers. Throughout this book we will learn C programming using the Arduino IDE. We will also be introduced to the Arduino IDE, its installation process, and how we can run our very first C program using an Arduino and the Arduino IDE.

Note

IDE stands for Integrated Development Environment. IDEs are used for software development. An IDE usually consists of an editor (where we can type code and comments), and a few tools along with a debugger (which is used to test the code to see if it has any errors). Most IDEs have a built in compiler (which converts source code/programming language into machine language).

Let's get introduced to an Arduino now.

主站蜘蛛池模板: 正蓝旗| 田东县| 含山县| 青铜峡市| 河津市| 珠海市| 寿宁县| 姚安县| 临海市| 蓝山县| 治多县| 安达市| 湖南省| 依兰县| 凤凰县| 温宿县| 琼海市| 陈巴尔虎旗| 潮安县| 汕尾市| 周至县| 志丹县| 秦安县| 都匀市| 乐业县| 峡江县| 大宁县| 克拉玛依市| 吉木萨尔县| 贵港市| 神池县| 大冶市| 淮南市| 永安市| 鄂尔多斯市| 班玛县| 仙游县| 称多县| 开封市| 肃宁县| 长宁县|