Q
quartz crystal oscillator, on Arduino boards,
6
–7
R
RAM (random access memory),
1
random function,
105
–108
random number generator,
107
–108
randomSeed function,
107
range compression,
121
–123
readHeader function,
142
relays, Arduino shields,
7
Reset connector, power connections,
4
Reset switch, on Arduino board,
6
resistors, pull-up.
See
pull-up resistors
return values, functions and,
57
–58
RISING constant, types of interrupt signals,
114
Roboduino, unofficial Arduino boards,
13
Ruggeduino, unofficial Arduino boards,
13
S
scrollDisplayLeft function, LCD library,
130
scrollDisplayRight function, LCD library,
130
Seeeduino, unofficial Arduino boards,
13
Serial Monitor
displaying messages sent from,
127
example using numeric variables and arithmetic,
40
–41
reading electrical interference,
90
–92
testing experiments in C,
38
–40
testing Morse code translator in,
81
–83
viewing array in,
68
–69
serial port, selecting from Tool menu,
18
–20
Serial Programming Connector,
6
Serial.available( ),
77
–78
setCursor function, LCD library,
127
setup function
in Blink sketch example,
34
–35
defining,
33
for Ethernet shield,
137
for LCD shield,
129
in Morse code translator,
76
required in all sketches,
31
setValuesFromParams function,
142
shield boards
for Ethernet,
131
for LCD display,
125
list of popular,
7
selecting official Wiznet-based shield,
132
shift-Out function,
112
shift registers,
112
sin, math functions in library,
108
Sketchbook,
22
–25
sketches
accessing from File menu,
22
–23
boilerplate code for,
31
collection of functions for.
See
libraries, Arduino
downloading,
23
–25
as programs,
28
uploading first,
17
–22
slash (/), as division operators,
42
software, installing,
16
sqrt, math functions in library,
108
square brackets ([]), in array syntax,
68
static variables,
56
–57
string arrays.
See
strings
string literals,
72
–73,
76
string variables,
73
–74
strings
overview of,
72
storing in EEPROM,
120
string literals,
72
–73
string variables,
73
–74
for translating Morse code.
See
Morse code translator
subtraction (–) operator,
42
switches
connecting to input pin on board,
92
pull-up resistors and,
93
using wire as,
95
,
97
syntax, of programming languages,
28
–29
T
tags, HTML,
133
,
137
tan, math functions in library,
108
Teensy, unofficial Arduino boards,
13
tempFloat variable,
122
text editors, for creating C++ files,
145
text, HTML formatting,
132
–133
TextMate (Mac computers),
145
TextPad (Windows computers),
145
threads, executing single,
112
–113
todos, commenting on code,
65
–66
tone function,
111
–112
Tools menu,
18
–20
truth tables, using with values,
60
type casts, converting float to int,
122
U
UART (Universal Asynchronous Receiver/Transmitter),
78
unions, storing floats in EEPROM,
119
–120
Universal Asynchronous Receiver/Transmitter (UART),
78
Uno
in Arduino family of development boards,
9
ATMega328 processor in,
117
unsigned int, data types in C language,
61
unsigned long, data types in C language,
61
USB
communicating via,
77
–78
component on Arduino development boards,
6
–7
connecting via,
1
installing drivers for,
16
plugging Arduino board into USB port,
15
USB Host shield,
7
USB message board,
127
–129
V
valueOfParam function,
142
values
assigning to variables,
40
#define directive for associating with a name,
48
–49
functions returning,
57
–58
list of values in arrays,
67
manipulating values,
59
–61
storing.
See
data storage
variables
Booleans and,
59
–61
C++ member variables,
143
data types in C language,
61
–62
defining in C language,
36
–38
for Flasher object,
146
floats,
59
global,
54
–55
local,
55
–56
numeric,
40
–42
static,
56
–57
types of,
58
Verify button, for checking code,
30
vocabulary, of programming languages,
27
void keyword,
32
–33
W
web browsers
communicating via HTTP,
132
text formatted using HTML,
132
–133
web servers
communicating with,
132
–133
using Arduino as,
134
–137
while command,
48
whitespace, code formatting styles or standards,
64
Windows computers
creating C++ libraries,
145
serial port for,
18
–19
TextPad as text editor,
145
Wiring library, Arduino library based on,
105
Wiznet chipset,
132
write function, LCD library,
129
writeHTMLforPin function,
142
Dostları ilə paylaş: |