Book Image

Learning C for Arduino

By : Syed Omar Faruk Towaha
Book Image

Learning C for Arduino

By: Syed Omar Faruk Towaha

Overview of this book

This book will start with the fundamentals of C programming and programming topics, such data types, functions, decision making, program loops, pointers, and structures, with the help of an Arduino board. Then you will get acquainted with Arduino interactions with sensors, LEDs, and autonomous systems and setting up the Arduino environment. Moving on you will also learn how to work on the digital and analog I/O, establish serial communications with autonomous systems, and integrate with electronic devices. By the end of the book, you will be able to make basic projects such as LED cube and smart weather system that leverages C.
Table of Contents (17 chapters)
Learning C for Arduino
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Installing a library


Installing library to the Arduino IDE is super easy. We can install a library manually or from the Manage Library option of the Arduino IDE:

  1. To access the Manage Library option, you need to go to Sketch | Include Library | Manage Libraries. You will see the following screen:

You can search libraries there and click Install. Say we want to install the Audio by Arduino library, search the library on the search box and select it. Now, click Install. See the following screenshot for clarification:

We can also manually install an Arduino library:

  1. To do this, we firstly need to download the library from a reliable source. Say we want to install a library called SSerial2Mobile, to download the library go to https://code.google.com/archive/p/sserial2mobile/downloads and click SSerial2Mobile-1.1.0.zip . See the following screenshot for more clarification:

  2. This will download a ZIP file named SSerial2Mobile-1.1.0.zip. You may extract it using any zip extractor software to see...