Skip to Main Content
Raspberry Pi Essentials
book

Raspberry Pi Essentials

by Jack Creasey
April 2015
Beginner content levelBeginner
212 pages
4h 47m
English
Packt Publishing
Content preview from Raspberry Pi Essentials

Chapter 5. Port Input and Output on the Raspberry Pi

Digital input and output (I/O) is at the point where computer programming touches the real world. The Raspberry Pi has a rich I/O structure that includes 3.3 Volts, input and output interface ports, Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C). Using this I/O structure, you will drive LEDs as output indicators and then use the Tkinter interface to sense switches as input.

After completing this chapter, you will be able to:

  • Understand the Raspberry Pi digital I/O port configuration
  • Drive LEDs and sense actuation of switches
  • Add a switch interface to the Internet radio project

Understanding Raspberry Pi digital input and output ports

The Broadcom SOC (BCM2835 and BCM2836 in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi Zero W Wireless Projects

Raspberry Pi Zero W Wireless Projects

Vasilis Tzivaras
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781784396398Supplemental Content