Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi By Example

You're reading from   Raspberry Pi By Example Start building amazing projects with the Raspberry Pi right out of the box

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781785285066
Length 294 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Arush Kakkar Arush Kakkar
Author Profile Icon Arush Kakkar
Arush Kakkar
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Introduction to Raspberry Pi and Python 2. Minecraft Pi FREE CHAPTER 3. Building Games with PyGame 4. Working with a Webcam and Pi Camera 5. Introduction to GPIO Programming 6. Creating Animated Movies with Raspberry Pi 7. Introduction to Computer Vision 8. Creating Your Own Motion Detection and Tracking System 9. Grove Sensors and the Raspberry Pi 10. Internet of Things with the Raspberry Pi 11. Build Your Own Supercomputer with Raspberry Pi 12. Advanced Networking with Raspberry Pi 13. Setting Up a Web Server on the Raspberry Pi 14. Network Programming in Python with the Pi A. Newer Raspberry Pi Models Index

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " We need the random library for the randint() function, which returns a random integer in the provided range."

A block of code is set as follows:

def fractal_tree(b_len,t):
    if b_len > 5:
        temp=random.randint(1, b_len)
        temp_angle = random.randint(1, 25)
        t.forward(temp)
        t.right(temp_angle)
        fractal_tree(b_len-10,t)
        t.left(2 * temp_angle)
        fractal_tree(b_len-10,t)
        t.right(temp_angle)
        t.backward(temp)

Any command-line input or output is written as follows:

pi@raspberrypi ~ $ mkdir book
pi@raspberrypi ~ $ cd book
pi@raspberrypi ~/book $ pwd
/home/pi/book
pi@raspberrypi ~/book $ 

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: " Check out the Product page of Raspberry Pi at http://www.raspberrypi.org/products/.."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image