Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi for Secret Agents

You're reading from   Raspberry Pi for Secret Agents Turn your Raspberry Pi into your very own secret agent toolbox with this set of exciting projects! 

Arrow left icon
Product type Paperback
Published in Apr 2013
Publisher Packt
ISBN-13 9781849695787
Length 152 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Stefan Sjogelid Stefan Sjogelid
Author Profile Icon Stefan Sjogelid
Stefan Sjogelid
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Raspberry Pi for Secret Agents
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Up to No Good FREE CHAPTER 2. Audio Antics 3. Webcam and Video Wizardry 4. Wi-Fi Pranks – Exploring your Network 5. Taking your Pi Off-road Index

Turning your TV on or off using the Pi


For this example, we are relying on a technology called Consumer Electronics Control (CEC), which is a feature of the HDMI standard for sending control messages to your home electronics equipment.

To help us send these messages, we'll need a software package called libCEC. Unfortunately, the libCEC version that is currently part of the Raspbian package repository doesn't actually support the Raspberry Pi, so we'll need to build our own software from source code.

  1. Before building the software, we will need to add some developer headers and code libraries that libCEC relies on:

    pi@raspberrypi ~ $ sudo apt-get install autoconf libtool libudev-dev liblockdev1-dev
    
  2. Next, we check out the libCEC source code from the project's Git repository:

    pi@raspberrypi ~ $ git clone git://github.com/Pulse-Eight/libcec.git
    
  3. Now we enter the source directory and build the software using the following sequence of commands:

    pi@raspberrypi ~ $ cd libcec
    pi@raspberrypi ~/libcec...
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 €18.99/month. Cancel anytime