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
Hands-On Internet of Things with Blynk

You're reading from   Hands-On Internet of Things with Blynk Build on the power of Blynk to configure smart devices and build exciting IoT projects

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788995061
Length 271 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Pradeeka Seneviratne Pradeeka Seneviratne
Author Profile Icon Pradeeka Seneviratne
Pradeeka Seneviratne
Arrow right icon
View More author details
Toc

zeRGBa

zeRGBa is a controller widget for picking colors by mixing red, green, and blue. Each basic color ranges from 0 to 255. The RGB color system constructs all the colors from the combination of the red, green and blue. The red, green, and blue use eight bits each, which have integer values from 0 to 255. This makes 256*256*256=16,777,216 possible colors.

The zeRGBa widget uses three pins on your hardware (Raspberry Pi) for each color channel: red, green, and blue.

Using digital pins

In split mode, the zeRGBa widget uses three pins on your hardware for each basic color. The pins should be capable of PWM. Unfortunately, the Raspberry Pi has a single pin that is GPIO 18 capable with PWM, but you will require two more PWM...

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