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
Yocto for Raspberry Pi

You're reading from   Yocto for Raspberry Pi Create unique and amazing projects by using the powerful combination of Yocto and Raspberry Pi

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781785281952
Length 214 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
TEXIER Pierre-Jean TEXIER Pierre-Jean
Author Profile Icon TEXIER Pierre-Jean
TEXIER Pierre-Jean
Petter Mabäcker Petter Mabäcker
Author Profile Icon Petter Mabäcker
Petter Mabäcker
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Meeting the Yocto Project FREE CHAPTER 2. Building our First Poky Image for the Raspberry Pi 3. Mastering Baking with Hob and Toaster 4. Understanding BitBake 5. Creating, Developing, and Deploying on the Raspberry Pi 6. Working with External Layers 7. Deploying a Custom Layer on the Raspberry Pi 8. Diving into the Raspberry Pi's Peripherals and Yocto Recipes 9. Making a Media Hub on the Raspberry Pi 10. Playing with an LCD Touchscreen and the Linux Kernel 11. Contributing to the Raspberry Pi BSP Layer 12. Home Automation Project - Booting a Custom Image

The Raspberry Pi connection

For the connection with our Raspberry Pi, we just have to connect it to the main connectors, I2C1_SDA and I2C1_SCL, as shown in this pin diagram:

The Raspberry Pi connection

The Nunchuck's protocol

The Wii Nunchuck contains a controller that communicates through the i2c bus. In order to know where to store bytes written to it, the first byte must be an 8-bit register address. In other words, each write() operation to the Nunchuck requires one register address byte, followed by data bytes.

For a write operation, the first byte sent to the Nunchuck tells it where to start (the START condition).

Encryption

The Nunchuck is designed to provide a specific encrypted link. However, this can be disabled through the following process:

  • Write 0x55 to the Nunchuck's 0xF0 register
  • Pause
  • Write 0x00 to the Nunchuck's 0xFB register

Write

Pause

Write

  

0xF0

0x55

-

0xFB

0x00

Note that if you own a white Nunchuck, the process will be different:

  • Write 0x00 to the Nunchuck&apos...
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