Beginning C for Arduino, Second Edition is written for those who have no prior experience with microcontrollers or programming but would like to experiment and learn both. Updated with new projects and new boards, this book introduces you to the C programming language, reinforcing each programming structure with a simple demonstration of how you can use C to control the Arduino family of microcontrollers. Author Jack Purdum uses an engaging style to teach good programming techniques using examples that have been honed during his 25 years of university teaching.
Beginning C for Arduino, Second Edition will teach you:
During the course of the book, you will learn the basics of programming, such as working with data types, making decisions, and writing control loops. You’ll then progress onto some of the trickier aspects of C programming, such as using pointers effectively, working with the C preprocessor, and tackling file I/O. Each chapter ends with a series of exercises and review questions to test your knowledge and reinforce what you have learned.
The book is aimed at a complete novice with no programming background. It assumes no prior programming or hardware design experience and is written for creative and curious people who would like to blend a software and hardware learning experience into a single, enjoyable endeavor.
Chapter 1: Introduction
Chapter 2: Arduino C
Chapter 3: Arduino C Data Types
Chapter 4: Decision Making in C
Chapter 5: Program Loops in C
Chapter 6: Functions in C
Chapter 7: Storage Classes and Scope
Chapter 8: Introduction to Pointers
Chapter 9: Using Pointers Effectively
Chapter 10: Structures, Unions, and Data Storage
Chapter 11: The C Preprocessor and Bitwise Operations
Chapter 12: Arduino Libraries
Chapter 13: Interfacing to the Outside World
Chapter 14: A Gentle Introduction to Object-Oriented Programming and C++
Appendix A: Suppliers and Sources
Appendix B: Electronic Components for Experiments