Programming the Raspberry Pi: getting started with Python
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
New York
Mcgraw-Hill Education
2015
|
Ausgabe: | 2nd ed |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XIX, 188 Seiten Illustrationen |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV042735913 | ||
003 | DE-604 | ||
005 | 20151117 | ||
007 | t | ||
008 | 150804s2015 a||| |||| 00||| eng d | ||
020 | |z 1259587401 |9 1-259-58740-1 | ||
020 | |z 9781259587405 |9 978-1-259-58740-5 | ||
035 | |a (OCoLC)933917115 | ||
035 | |a (DE-599)BVBBV042735913 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-739 | ||
084 | |a ST 160 |0 (DE-625)143599: |2 rvk | ||
100 | 1 | |a Monk, Simon |d ca. 20. Jh. |e Verfasser |0 (DE-588)1037736990 |4 aut | |
245 | 1 | 0 | |a Programming the Raspberry Pi |b getting started with Python |
250 | |a 2nd ed | ||
264 | 1 | |a New York |b Mcgraw-Hill Education |c 2015 | |
300 | |a XIX, 188 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a Programmierung |0 (DE-588)4076370-5 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Raspberry Pi |0 (DE-588)1027903738 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Raspberry Pi |0 (DE-588)1027903738 |D s |
689 | 0 | 1 | |a Programmierung |0 (DE-588)4076370-5 |D s |
689 | 0 | 2 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m Digitalisierung UB Passau - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028166876&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-028166876 |
Datensatz im Suchindex
_version_ | 1804174948898439168 |
---|---|
adam_text | CONTENTS
Preface ................................................... xv
Acknowledgments ............................................ xvü
Introduction ................................................ xix
1 Introduction ........................
What Is the Raspberry Pi? ........
What Can You Do with a Raspberry Pi?
A Tour of the Raspberry Pi .......
Setting Up Your Raspberry Pi .....
Buying What You Need ..........
Connecting Everything Together
Booting Up .......................
Summary ..........................
1
1
3
3
5
5
11
12
14
2 Getting Started ............................................ 15
Linux ...................................................... 15
The Desktop ................................................ 16
The Internet ............................................... 18
The Command Line ........................................... 19
Navigating with the Terminal ............................. 19
sudo ..................................................... 21
Applications ............................................... 22
Internet Resources ......................................... 23
Summary .................................................... 24
3 Python Basics
IDLE ...........
Python Versions
Python Shell
Editor .......
Numbers ........
Variables ......
For Loops ......
25
25
26
26
27
29
30
31
IX
x Contents
Simulating Dice ............................................. 32
If .......................................................... 34
Comparisons ............................................... 35
Being Logical ............................................. 36
Else ...................................................... 37
While ....................................................... 38
Summary ..................................................... 39
4 Strings, Lists, and Dictionaries ............................... 41
String Theory ............................................... 41
Lists ....................................................... 43
Functions ................................................... 46
Hangman ..................................................... 47
Dictionaries ................................................ 55
Tuples ...................................................... 56
Multiple Assignment ....................................... 57
Multiple Return Values .................................... 57
Exceptions .................................................. 58
Summary of Functions ........................................ 58
Numbers ................................................... 59
Strings ................................................... 59
Lists ..................................................... 61
Dictionaries .............................................. 61
Type Conversions .......................................... 62
Summary ..................................................... 63
5 Modules, Classes, and Methods .................................. 65
Modules ..................................................... 65
Using Modules ............................................. 66
Useful Python Libraries ................................... 67
Object Orientation .......................................... 67
Defining Classes ............................................ 68
Inheritance ................................................. 70
Summary ..................................................... 73
6 Files and the Internet ......................................... 75
Files ....................................................... 75
Reading Files ............................................. 75
Reading Big Files ......................................... 77
Contents XI
Writing Files ............................................ 78
The File System .......................................... 79
Pickling .................................................... 80
Internet .................................................... 81
Summary ..................................................... 83
7 Graphical User Interfaces ...................................... 85
Tkinter ..................................................... 85
Hello World ................................................. 85
Temperature Converter ....................................... 86
Other GUI Widgets ........................................... 90
Checkbutton .............................................. 91
Listbox .................................................. 91
Spinbox .................................................. 92
Layouts .................................................. 92
Scrollbar ................................................ 96
Dialogs ..................................................... 97
Color Chooser .................................... . . , . 98
File Chooser ............................................. 99
Menus ....................................................... 99
The Canvas ................................................. 100
Summary .................................................... 101
8 Games Programming ............................................. 103
What Is Pygame? ............................................ 103
Coordinates ................................................ 103
Hello Pygame ............................................... 104
A Raspberry Game ........................................... 106
Following the Mouse ..................................... 107
One Raspberry ........................................... 108
Catch Detection and Scoring ............................. 110
Timing . . . . ,......................................... 110
Lots of Raspberries ................................... Ill
Summary ................................................... 114
9 Interfacing Hardware .......................................... 115
GPIO Pin Connections ....................................... 115
Pin Functions ........................................... 116
Serial Interface Pins ................................... 117
Contents
XII
Power Pins ...........*............................. 117
Hat Pins .............................................. 118
Breadboarding with Jumper Wires .......................... 118
Digital Outputs .......................................... 118
Step 1. Put the Resistor on the Breadboard ............ 119
Step 2. Put the LED on the Breadboard ................. 120
Step 3. Connect the Breadboard to the GPIO Pins ....... 120
Analog Outputs ........................................... 123
Digital Inputs ........................................... 126
Analog Inputs ............................................ 128
Hardware ..................*........................ 128
The Software .......................................... 130
Breadboarding with the Pi Cobbler ........................ 135
Prototyping Boards .................................... 135
Perma-Proto ........................................... 136
Perma-Proto Pi HAT .................................... 136
Other Boards and HATs .................................... 137
Arduino and the Pi ....................................... 137
Arduino and Pi Talk ................................... 139
Summary ............................................... 141
10 LED Fader Project .......................................... 143
What You Need ............................................ 144
Hardware Assembly ........................................ 144
Software ................................................. 145
Summary .................................................. 147
11 Prototyping Project (Clock) ............................... 149
What You Need ............................................ 150
Hardware Assembly ....................................... 150
Software ................................................. 152
Phase Two ............................................... 154
Summary ................................................ 157
12 Raspberry Pi Robot .......................................... 159
What You Need ............................................ 160
Project 1. Autonomous Rover .............................. 160
Hardware .............................................. 160
Software ............................................ 163
Contents xiii
Project 2, Web-Controlled Rover ....................... 166
Software ........................................... 166
Summary ............................................... 171
What Next ..........................*..................... 173
Linux Resources ....................................... 173
Python Resources ...................................... 173
Raspberry Pi Resources ................................ 174
Other Programming Languages ........................... 175
Scratch ............................................ 175
C .................................................. 175
Applications and Projects ............................. 177
Media Center (Raspbmc) ............................. 177
Home Automation .................................... 178
Summary ............................................... 178
Index
179
|
any_adam_object | 1 |
author | Monk, Simon ca. 20. Jh |
author_GND | (DE-588)1037736990 |
author_facet | Monk, Simon ca. 20. Jh |
author_role | aut |
author_sort | Monk, Simon ca. 20. Jh |
author_variant | s m sm |
building | Verbundindex |
bvnumber | BV042735913 |
classification_rvk | ST 160 |
ctrlnum | (OCoLC)933917115 (DE-599)BVBBV042735913 |
discipline | Informatik |
edition | 2nd ed |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01550nam a2200385 c 4500</leader><controlfield tag="001">BV042735913</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20151117 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">150804s2015 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">1259587401</subfield><subfield code="9">1-259-58740-1</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">9781259587405</subfield><subfield code="9">978-1-259-58740-5</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)933917115</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV042735913</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-739</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 160</subfield><subfield code="0">(DE-625)143599:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Monk, Simon</subfield><subfield code="d">ca. 20. Jh.</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1037736990</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Programming the Raspberry Pi</subfield><subfield code="b">getting started with Python</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2nd ed</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">New York</subfield><subfield code="b">Mcgraw-Hill Education</subfield><subfield code="c">2015</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XIX, 188 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Programmierung</subfield><subfield code="0">(DE-588)4076370-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Raspberry Pi</subfield><subfield code="0">(DE-588)1027903738</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Raspberry Pi</subfield><subfield code="0">(DE-588)1027903738</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Programmierung</subfield><subfield code="0">(DE-588)4076370-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="2"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Passau - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028166876&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-028166876</subfield></datafield></record></collection> |
id | DE-604.BV042735913 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:08:31Z |
institution | BVB |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-028166876 |
oclc_num | 933917115 |
open_access_boolean | |
owner | DE-739 |
owner_facet | DE-739 |
physical | XIX, 188 Seiten Illustrationen |
publishDate | 2015 |
publishDateSearch | 2015 |
publishDateSort | 2015 |
publisher | Mcgraw-Hill Education |
record_format | marc |
spelling | Monk, Simon ca. 20. Jh. Verfasser (DE-588)1037736990 aut Programming the Raspberry Pi getting started with Python 2nd ed New York Mcgraw-Hill Education 2015 XIX, 188 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Programmierung (DE-588)4076370-5 gnd rswk-swf Raspberry Pi (DE-588)1027903738 gnd rswk-swf Python Programmiersprache (DE-588)4434275-5 gnd rswk-swf Raspberry Pi (DE-588)1027903738 s Programmierung (DE-588)4076370-5 s Python Programmiersprache (DE-588)4434275-5 s DE-604 Digitalisierung UB Passau - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028166876&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Monk, Simon ca. 20. Jh Programming the Raspberry Pi getting started with Python Programmierung (DE-588)4076370-5 gnd Raspberry Pi (DE-588)1027903738 gnd Python Programmiersprache (DE-588)4434275-5 gnd |
subject_GND | (DE-588)4076370-5 (DE-588)1027903738 (DE-588)4434275-5 |
title | Programming the Raspberry Pi getting started with Python |
title_auth | Programming the Raspberry Pi getting started with Python |
title_exact_search | Programming the Raspberry Pi getting started with Python |
title_full | Programming the Raspberry Pi getting started with Python |
title_fullStr | Programming the Raspberry Pi getting started with Python |
title_full_unstemmed | Programming the Raspberry Pi getting started with Python |
title_short | Programming the Raspberry Pi |
title_sort | programming the raspberry pi getting started with python |
title_sub | getting started with Python |
topic | Programmierung (DE-588)4076370-5 gnd Raspberry Pi (DE-588)1027903738 gnd Python Programmiersprache (DE-588)4434275-5 gnd |
topic_facet | Programmierung Raspberry Pi Python Programmiersprache |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028166876&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT monksimon programmingtheraspberrypigettingstartedwithpython |