Beginning C for Arduino: Learn C Programming for the Arduino

Copertina anteriore
Apress, 1 feb 2013 - 280 pagine
Beginning C for Arduino is written for those who have no prior experience with microcontrollers or programming but would like to experiment and learn both. 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 will teach you:

  • The C programming language
  • How to use C to control a microcontroller and related hardware
  • How to extend C by creating your own library routines

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.

 

Sommario

CHAPTER 1 Introduction
1
CHAPTER 2 Arduino C
21
CHAPTER 3 Arduino C Data Types
37
CHAPTER 4 Decision Making in C
55
CHAPTER 5 Program Loops in C
77
CHAPTER 6 Functions in C
91
CHAPTER 7 Storage Classes and Scope
113
CHAPTER 8 Introduction to Pointers
131
CHAPTER 10 Structures Unions and Data Storage
171
CHAPTER 11 The C Preprocessor and Bitwise Operations
197
CHAPTER 12 Arduino Libraries
211
APPENDIX A Suppliers and Sources
231
APPENDIX B Electronic Components for Experiments
237
Answers to Exercises
241
Index
257
Copyright

CHAPTER 9 Using Pointers Effectively
151

Altre edizioni - Visualizza tutto

Parole e frasi comuni

Informazioni sull'autore (2013)

Jack Purdum, Ph.D. is an educator with 25 years of teaching experience. He has been an amateur radio ("ham") operator for more than 50 years, holds a US patent for imaging software, has authored 16 programming texts, has numerous journal and magazine articles, and is a winner of numerous teaching awards.

Informazioni bibliografiche