Summary of HSB RGB Arduino Color Library
This article introduces an Arduino color library enabling users to specify colors using the natural Hue, Saturation, and Brightness (HSB) model instead of traditional RGB channels. The library facilitates drawing colors on LCD screens and controlling RGB LEDs, as demonstrated in projects like the HSB RGB Sketcher and the RGB Rainbow Sun.
Parts used in the HSB RGB Arduino Color Library project:
- Arduino board
- RGB LEDs
- LCD screens
- HSB RGB Arduino Color Library
Screens speak of color in terms of 3 channels: Red, Green and Blue. Humans tend to think of colors in 3 channels too, but the channels that seem more natural usually are Hue, Saturation and Brightness. Here is an arduino color library so you too can specify colors by their hue! We use this code in our RGB Rainbow Sun and HSB RGB Sketcher. If you need help learning how to install libraries in arduino check out this thorough Adafruit tutorial. We use this library to draw colors on LCD screens, for example see the HSB RGB Sketcher Tutorial and onto RGB LEDs in the Sun Kit.
Color Code Example
- How does this library define colors?
The library allows specifying colors by their hue, saturation, and brightness instead of red, green, and blue channels. - Can I use this library for RGB LEDs?
Yes, the code is used to draw colors onto RGB LEDs as shown in the Sun Kit example. - Does the library support LCD screens?
Yes, the library is used to draw colors on LCD screens within the HSB RGB Sketcher tutorial. - What happens when varying the hue in the rainbow function?
Varying the hue moves the rainbow function across the whole visible color spectrum. - Which project uses this code for a rainbow effect?
The RGB Rainbow Sun project uses this code to display a rainbow on RGB LEDs. - Where can I find help installing libraries in Arduino?
A thorough Adafruit tutorial is available for learning how to install libraries in Arduino. - What are the three channels humans tend to think of for colors?
Humans usually think of colors in terms of Hue, Saturation, and Brightness. - What is the primary benefit of this specific color library?
It enables users to work with the more natural Hue, Saturation, and Brightness color model.