Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Raspberry Pi Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Raspberry Pi Essentials

Raspberry Pi Essentials

By : Jack Creasey
3.8 (5)
close
close
Raspberry Pi Essentials

Raspberry Pi Essentials

3.8 (5)
By: Jack Creasey

Overview of this book

Programmers new to the Raspberry Pi and novice programmers with little to no experience with micro board computing will find the book useful. A basic knowledge of programming languages in general will prove useful for a better understanding of the topics.
Table of Contents (10 chapters)
close
close
9
Index

Chapter 6. Driving I2C Peripherals on the Raspberry Pi

In the previous chapter, we tested the single-bit digital I/O ports built into the Raspberry Pi SOC. Now it's time to shift gears to another built-in interface for hardware interfaces.

In this chapter, we will talk about an interface bus that uses a simple message communication protocol that communicates from a master device to a slave device. You will see this referred to as I2C (pronounced I-squared-C) and sometimes as (System Management Bus) SMBus in most Pi technical documentation. Each has different capabilities, but they are essentially identical in protocol. For our needs, we will treat the names as interchangeable, but to be more accurate—we will use I2C.

After completing this chapter, you will be able to:

  • Understand the characteristics of the I2C protocol and its peripheral addressing scheme
  • Read and write to interfaces on the I2C bus
  • Create a program to control a multichannel PWM controller

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY