G
game console, Nunchuk con-
troller, 153–162
game controller, see motion-
sensing game controller
Game
object, 117–118
gameLoop
, 120, 124
game_over
, 115, 159
GameController
class, 112–113
GameController
object, 117
Gameduino 2 shield, 125
Gameduino shield, 125
games
Breakout clone game,
111–124
dice, 55–59
ideas, 125
motion-sensing con-
troller, 99–110
Nunchuk video game
console, 153–162
Pragduino, 153–162
resources, 162
GameStates
, 117
GET
, 219–220
getBytes
, 192
getElementById
, 96
get_axis
, 105
get_position
, 232
get_temperature
, 88
gets
, 262
Gibb, Alicia, 230
GitHub, 72
GND pins, 8
GNU development tools, 249–
252
Google Chrome apps
about, 267–268
Breakout clone game,
112–124
controlling Arduino with,
267–280
minimal app project,
269–271
parking-distance control
project, 92–97, 144
remote control project,
212–223
resources, 268, 275
Serial API, 271–274
SerialDevice
class, 274–280
starting, 270
store, 268–269
Google Chrome OS, 267
Google Code, 72
graphics
converting to code, 141–
143
editors, 141
flickering prevention, 158
TV thermometer project,
135, 137–138
TVout library, 134, 139–
143
ground pins, 8
ground wires, 28
grounding
breadboards, 41
multiple LEDs, 45
serial communication,
253
GSM shield, 180
guess button, dice game, 55–
59
guess
variable, 58
H
Hackvision, 125
handleMessageState
, 120
handle_command
, 219–220
handle_guess_button
, 58
handle_start_button
, 58
handshake, 151
header files
C++, 64
Morse Code project, 63–
64
TV thermometer project,
136, 139
headers
Adafruit Experimentation
Kit for Arduino, xix
parts list, xxi
height
Breakout clone game,
117
image data, 141
Pragduino, 155
TV thermometer project,
136–137, 141
HEIGHT
constant, 155
Hello, World! examples
blinking LEDs, 16, 18–
22, 27
Morse code, 64, 67
HELO
, 188, 192
Help menu, 16
helping hand, 245
HEX format, 31
hexadecimal numbers, 31
hits
, 156, 161
Hoefer, Steve, 59
hooray
, 58
hourglass random number
generator, 48, 234
HTML, see also Google
Chrome apps; web browser.
browser games, 114–124
remote control project,
213–215
HTTP, see also Google
Chrome apps; web browser
about, 219
remote control project,
216–223
humidity and speed of sound,
98
I
I
2
C (Inter-Integrated Circuit)
protocol, 147, 151
id
attribute, 115, 279
#ifdef
, 165
#ifndef
, 149
image
variable, 143
ImageMagick, 141
inXRange
, 123
inYRange
, 123
index
, 70
indirect acceleration, 110
infrared LEDs
Adafruit Experimentation
Kit for Arduino, xix
connecting, 207
parts list, xxi
remote control project,
207–212
troubleshooting, 223
infrared light, 193, 202
infrared receivers, see also re-
mote control project
about, 203
Adafruit Experimentation
Kit for Arduino, xix
Blaminatr project, 235
connecting, 204
ideas, 222
images, 202–203
troubleshooting, 223
Index • 288
www.it-ebooks.info