Limit search to available items
Book Cover
E-book
Author Purdum, Jack J. (Jack Jay), author.

Title Beginning C for Arduino : learn C programming for the Arduino / Jack Purdum, Ph. D
Edition Second edition
Published [New York] : Apress : Distributed to the Book trade worldwide by Springer Science+Business Media, [2015]
©2015

Copies

Description 1 online resource : illustrations
Series Technology in action
Technology in action series.
Contents Loading and Running Your First ProgramWriting Your First Program; What the Program Does; Compiling and Uploading a Program; Summary; Chapter 2: Arduino C; The Building Blocks of All Programming Languages; Expressions; Statements; Operator Precedence; Statement Blocks; Function Blocks; The Five Program Steps; 1. Initialization Step; 2. Input Step; 3. Process Step; 4. Output Step; 5. Termination Step; The Purpose of the Five Program Steps; A Revisit to Your First Program; The setup() Function; The loop() Function; Arduino Program Requirements; The Blink Program; Program Comments
Single-Line CommentsMulti-line Comments; When to Use Comments; The setup() Function in Blink; How to Find Information About Library Functions; The loop() Function; delay(): Good News, Bad News; Summary; Chapter 3: Arduino C Data Types; Keywords in C; Variable Names in C; The boolean Data Type; Walking Through the Function Call to ReadSwitchState (); Binary Numbers; The char Data Type and Character Sets; Generating a Table of ASCII Characters; The byte Data Type; The int Data Type; The word Data Type; The long Data Type; The float and double Data Types; Floating Point Precision
The string Data TypeString Data Type; Which Is Better: String or strings Built from char Arrays?; The void Data Type; The array Data Type; Array Generalizations; Defining vs. Declaring Variables; Language Errors; Symbol Tables; lvalues and rvalues; Understanding an Assignment Statement; The Bucket Analogy; Using the cast Operator; The Cast Rule; Silent Casts; Summary; Chapter 4: Decision Making in C; Relational Operators; The if Statement; What if Expression1 Is Logic True?; What if Expression1 Is Logic False?; Braces or No Braces?; A Modified Blink Program; The Circuit
Circuit Resistor ValuesThe Modified Blink Program; const Keyword; Software Modifications to the Alternate Blink Program; The if-else Statement Block; Cascading if statements; The Increment and Decrement Operators; Two Types of Increment Operators (++); Two Flavors of the Decrement Operator( -- ); Precedence of Operators; The switch statement; A switch Variation, the Ellipsis Operator (...); Which to Use: Cascading if-else or switch?; The goto Statement; Getting Rid of Magic Numbers; The C Preprocessor; Heads or Tails; Initialization Step; Input Step; Process Step; Output Step; Termination Step
Summary 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: The C programming language How to use C to control a microcontroller and related hardware How to extend C by creating your own libraries, including an introduction to object-oriented programming 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
Analysis computerwetenschappen
computer sciences
programmeertalen
programming languages
Information and Communication Technology (General)
Informatie- en communicatietechnologie (algemeen)
Notes "Extras online"--Cover
Copyright © 2015 By Jack Purdum, Ph.D. 2015
English
Vendor-supplied metadata
In Springer eBooks
Subject Arduino (Programmable controller)
C (Computer program language)
Programmable controllers.
Computer input-output equipment.
Computer hardware.
Programming & scripting languages: general.
TECHNOLOGY & ENGINEERING -- Engineering (General)
Computer input-output equipment
Arduino (Programmable controller)
C (Computer program language)
Programmable controllers
Form Electronic book
LC no. 2015944814
ISBN 9781484209400
1484209400
1484209419
9781484209417