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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Beaglebone Essentials

You're reading from   Beaglebone Essentials Harness the power of the BeagleBone Black to manage external environments using C, Bash, and Python/PHP programming

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781784393526
Length 240 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Rodolfo Giometti Rodolfo Giometti
Author Profile Icon Rodolfo Giometti
Rodolfo Giometti
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Installing the Developing System 2. Managing the System Console FREE CHAPTER 3. Compiling versus Cross-compiling 4. Quick Programming with Scripts 5. Device Drivers 6. Serial Ports and TTY Devices 7. Universal Serial Bus – USB 8. Inter-integrated Circuit – I2C 9. Serial Peripheral Interface – SPI 10. 1-Wire Bus – W1 11. Useful System Daemons Index

Getting access to the SPI devices


As already stated in the previous section, there exist several SPI slaves, and since we have to choose one of them to present here, I decided to show you how to manage an LCD display.

I'm going to use the following tiny LCD display, which can be used in simple applications, because it's cheap and well supported by the BeagleBone Black's kernel:

Note

The device can be purchased at (or by surfing the Internet) http://www.cosino.io/product/color-tft-lcd-1-8-160x128.

First of all, we must do the electrical connections, so in the following table, I have reported the correspondence between the BeagleBone Black's pins and the LCD pins:

BeagleBone Black pins – label

LCD pins – label

P9.4 – VCC

9 – VCC

P9.29 – MISO

Not connected

P9.30 – MOSI

4 – MOSI

P9.31 – SCLK

3 – SCK

P9.28 – SS0

5 – TFT_CS

P9.25

7 – D/C

P9.27

8 – RESET

P8.19

1 – LITE

P9.2 – GND

10 – GND

You can note that we used the SPI dedicated pins, plus some GPIOs lines. This configuration...

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