Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Android Hardware Interfacing with the BeagleBone Black

You're reading from  Android Hardware Interfacing with the BeagleBone Black

Product type Book
Published in Feb 2015
Publisher
ISBN-13 9781784392161
Pages 134 pages
Edition 1st Edition
Languages

Exploring the GPIO example app


In this section, you will examine the example Android app that performs GPIO interfacing on BBB. The purpose of this application is to demonstrate how to use PacktHAL to perform GPIO read and write processes from within an actual app. PacktHAL provides a set of interfacing functions that you will use to work with GPIOs from within your Android apps. These functions allow you to read the values of input GPIOs and set the values of output GPIOs. The low-level details of the hardware interfacing are implemented in PacktHAL, so you can quickly and easily get your apps interacting with GPIOs.

Before digging through the GPIO app's code, you must install the code to your development system and install the app to your Android system. The source code for the app, as well as a precompiled .apk package, are located in the chapter3.tgz file, which is available for download from the book's website.

Installing the app and source under Windows

Once you have downloaded the chapter3...

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 €14.99/month. Cancel anytime}