Embedded Controllers Using C and Arduino
Free
The publisher has enabled DRM protection, which means that you need to use the BookFusion iOS, Android or Web app to read this eBook. This eBook cannot be used outside of the BookFusion platform.
Description
Contents
Reviews
Language
Unknown
ISBN
Unknown
digitalWrite()
Description
Published by James M. Fiore via dissidents
James Fiore, Professor
Electrical Engineering Technology
Mohawk Valley Community College
1101 Sherman Drive
Utica, NY 13501
jfiore@mvcc.edu
Cover art by the author
Introduction
1.2 Frequently Asked Questions
Why learn C language programming?
What’s the difference between C and C++?
Where can I buy an Arduino development board?
What’s the difference between desktop PC development and embedded programming?
How does C compare with Python?
How does C compare with assembly language?
2.2 Guts 101
2.3 Memory Maps
2.4 Stacks
3.2 Variable Naming, Types and Declaration
3.3 Functions
All programs must have a place to start, and in C, program execution begins with a function called main. This does not have to be the first function written or listed, but all programs must have a function called main. Here’s our first program, found in Figure 3.2, following:
3.4 Libraries
3.5 Some Simple Math
3.6 The program creation/development cycle
3.7 Summary
4.2 Variable Sizes
4.3 More Math
4.4 Bitwise Operations
4.7 Keywords
5.2 Scope
6.2 String Manipulation
7.2 Nesting
7.3 Looping
7.4 While or For?
8.2 Using Addresses and Pointers
10.2 Pointers and Structures
10.3 Structures, Arrays, and So On
12.2 Free Memory Pool
12.3 Allocating Memory
12.4 Using Memory
Note the freedom that we have with the pointer. It can be used as a normal pointer or thought of as the base of an array and indexed accordingly. Similarly, we might need to allocate a structure and initialize its fields. Here is a function that we can call to allocate a struct foobar, initialize some fields, and return a pointer to it.
12.5 Freeing Memory
12.6 Operating System Specific Routines
14.2 Conditional Compilation
15.2 Input/Output
15.3 Math
15.4 Memory and Hardware
15.5 Code Development
pinMode()
Description
Syntax
Parameters
Returns
Syntax
Parameters
Returns
Example
delay()19
Description
Syntax
Parameters
Returns
Example
Caveat
See also
delayMicroseconds()
Description
Syntax
Parameters
Returns
Caveats and Known Issues
millis()
Description
Parameters
Returns
Tip:
micros()
Description
Parameters
Returns
digitalRead()20
Description
Syntax
Parameters
Returns
Example
Note
See also
analogRead()21
Description
Syntax
Parameters
Returns
Note
See also
analogReference()22
Description
Syntax
Parameters
Returns
Note
Warning
See also
analogWrite()23
Description
Syntax
Parameters
Returns
Notes and Known Issues
See also
The book hasn't received reviews yet.