Search icon CANCEL
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
Android Things Quick Start Guide

You're reading from   Android Things Quick Start Guide Build your own smart devices using the Android Things platform

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789341799
Length 192 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Raul Portales Raul Portales
Author Profile Icon Raul Portales
Raul Portales
Arrow right icon
View More author details
Toc

Small displays

Another typical component for IoT projects are simple displays. We have already used two different LED segment-based displays, but there are other models that offer more functionality and versatility while still being cheap, such as LCD displays and OLED screens.

Both the LCD screen and the OLED screen drivers work by giving us access to the pixels on the screen, including some utility methods to draw text or even bitmaps depending on the case. The main difference is that on the LCD screen, the pixels are grouped into separated characters (5 by 8 pixels each), arranged in rows and columns (typically, two rows of 16 characters), while the OLED is a continuous screen, typically monochrome.

To use an LCD screen, we need to add the following driver by Gautier Mechling:

dependencies {
[...]
implementation 'com.nilhcem.androidthings:driver-lcd-pcf8574:+&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