售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Raspberry Pi Projects for Kids
Table of Contents
Raspberry Pi Projects for Kids
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with the Raspberry Pi
Materials needed
Power supply
Storage
Input
Video
Network
Preparing the SD card
Starting up the Raspberry Pi
Using your Raspberry Pi
The command line
Updating and installing new software
Other uses for Raspberry Pi
Troubleshooting
Summary
2. Making Your Own Angry Birds Game
Scratch
Hello world!
Code tour
Creating a character
Creating a level
Moving the character
Initialization
Moving with the keyboard
Launch!
Flight
Adding physics
Gravity
Bouncing
Ending the game
Scoring
Extensions
Summary
3. Testing Your Speed
Materials needed
Creating the game controller
The controller base
Adding buttons
Connecting to the Raspberry Pi
Python
Coding the game
Random behavior
Using the controller
Adding a time limit
Bringing it all together
Complete code listing
The keyboard version
What's next?
Summary
4. Making an Interactive Map of Your City
Hello world!
Tkinter
Writing the program
Getting a map
No Internet? No problem!
Google Maps
Generating the address
Downloading the image
Using the image
Adding markers
Detecting mouse clicks
Reacting to mouse clicks
Adding labels
Basic labels
Pop-up windows
Code listing
Extensions
Layout
Additional widgets
Checkbutton
Frame and LabelFrame
Listbox
Menu
Menubutton
Message
OptionMenu
Radiobutton
Scale
Spinbox
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜