Download Beginning C for Arduino, Second Edition By Jack Purdum

[Total: 0    Average: 0/5]

[X]

Introduction

The primary goal of this textbook is to teach you the C programming language as it exists in the Arduino integrated development environment (IDE). I just Googled “Arduino C programming books” and got 1.1 million hits! Some people are probably rolling their eyes, thinking: “Just what we need … another C programming book.” I hope to convince you over the ensuing pages that this book is different. First, many C programming texts designed for the Arduino environment relegate programming to the back seat, concentrating instead on the electronics. Indeed, some give you the feeling that programming is a necessary evil you must work through to get to the good stuff. Not this text. The truth remains that so-so software is doomed to produce so-so results with the hardware. Crafting good software can be every bit as rewarding as a well-engineered piece of hardware.

A second factor that makes this book different is my teaching experience. I had a programmer work for me who was perhaps the most gifted programmer I know. One summer I assigned an intern to him and, within a week, she quit in tears, saying he was impossible to work with—let alone learn something from him. Just because you are a brilliant programmer doesn’t mean you can impart that knowledge to others. It’s not until you have 150 sets of eyes staring at you like a deer in the headlights that can you appreciate what you thought was a great way to explain something obviously isn’t. This trial-and-error process of teaching for more than 25 years has helped me develop techniques that lift students over the most likely stumbling blocks. Finally, teaching programming does not have to be a dry or boring process. I have tried to make this text read as though you and I are talking face-to-face about programming. Although you are the final judge, I hope you come away with the enjoyment and appreciation for programming that I have. The power to make a piece of hardware dance beautifully to your commands is most addicting.

Table of Contents

Chapter No 1: Introduction
Chapter No 2: Arduino C
Chapter No 3: Arduino C Data Types
Chapter No 4: Decision Making in C
Chapter No 5: Program Loops in C
Chapter No 6: Functions in C
Chapter No 7: Storage Classes and Scope
Chapter No 8: Introduction to Pointers
Chapter No 9: Using Pointers Effectively
Chapter No 10: Structures, Unions, and Data Storage
Chapter No 11: The C Preprocessor and Bitwise Operations
Chapter No 12: Arduino Libraries
Chapter No 13: Interfacing to the Outside World
Chapter No 14: A Gentle Introduction to Object-Oriented Programming and C++