Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours

(singke) #1

index() function, 167


index values (tuples), 157


infinite loops, 146 - 147


inheritance, 294 - 302 , 307 - 313


subclasses, creating, 297 - 298
syntax, 296

initializing PyGame library, 396 - 397


input, 91 - 90


GPIO
detecting, 542
events, 546 - 548
switch bounce, 548
validating with for loops, 141 - 142

input function, 88 - 89


input polling, 545 - 546


input signals, GPIO, 544 - 545


installing
Apache web server, 470 - 471
LXML module, 433
module-building tools, 391 - 392
MySQL, 448
MySQL/Connector module, 452
packages for PyGame library, 393 - 394
PostgreSQL, 458
psycopg2 module, 463
PyGame library, 390 - 391
Python, 48 - 50
RPI.GPIO module, 535
screen saver software package, 41 - 43


instantiating classes, 279


int function, 89


integers


converting to strings, 89 - 90
formatting, 212

interacting with graphics on game screen, 409 - 410


interactive shell (Python), 51 - 54
exiting, 52
exploring, 54
help utility, 52
Python scripts, running, 60
Python v2, 51

Free download pdf