Datasheet

268
Robotics with the BOE Shield-Bot
Index
Index
For your convenience, this book is available as a free, searchable PDF download from the
#122-32335 product page at www.parallax.com.
-- decrement operator .............................. 34
! = not equal operator ............................. 165
! NOT operato XE "operators:/ division" r 27
#include..................................................... 57
% modulus operator ................................. 27
&& boolean AND operator ....................... 31
* multiplication ......................................... 27
/ division ................................................... 27
/* and */ ................................................... 36
// line comment ........................................ 36
|| boolean OR operator ............................ 31
+ addition .................................................. 27
++ increment operator ........................ 34, 35
++ post increment ..................................... 34
< less than operator .................................. 31
== compare-equals operator .................... 31
> greater than operator ............................ 30
38 kHz ..................................................... 250
3-position switch ....................................... 61
active-low output .................................... 152
actuators ................................................. 255
adding a library ......................................... 57
addition ..................................................... 27
ambient light ........................................... 179
amperes .................................................. 186
amps.......................................................... 52
ANALOG IN sockets ................................... 50
analog sensor .......................................... 184
analog to digital conversion .................... 183
analogRead function ............................... 183
anode .......................................... 48, 51, 220
Arduino IDE software ................................ 16
Arduino language
analogRead function .................................. 183
byte .............................................................. 26
chaining else if .............................................. 32
commenting code ......................................... 36
constrain function ...................................... 204
DEC ............................................................... 26
delay function ............................................... 22
digitalRead .................................................. 151
digitalWrite ................................................... 53
disableServos function ............................... 124
example function ........................................ 119
float .............................................................. 24
for loop ................................................... 32, 33
go function ................................................. 138
HIGH ........................................................... 151
if...else .......................................................... 30
include .......................................................... 57
infinite loop .................................................. 35
INPUT ............................................................ 52
int 24
irDetect function ........................................ 222
irDistance function ..................................... 251
long ............................................................... 27
loop .............................................................. 20
LOW ............................................................ 151
maneuver function ..................................... 125
map function .............................................. 185
operators .................................... See operators
OUTPUT ........................................................ 52
PI 29
pinMode ....................................................... 52
pinMode function ....................................... 151
pitch function ............................................. 121
println ........................................................... 23
rcTime function .......................................... 194
Serial library .................................................. 20
Serial.println() ............................................... 35
Serial.read .................................................... 96
Servo library ................................................. 57
setup ....................................................... 20, 21
sizeof function ............................................ 131
sqrt ............................................................... 24