Which color starts with pi

Raspberry Pi and USB LED blink (1): RGB colors

The standard color of blink (1) is white. However, it contains an RGB light-emitting diode with which the entire RGB color space can be addressed.
The RGB color space enables color perception through the additive mixing of the three basic colors red (R), green (G) and blue (B). Each basic color corresponds to a channel, the value of which is specified with 8 bits, which is specified as a decimal number from 0 to 255 or a hex number from 00 to FF.

What is the blink (1)?

blink (1) from ThingM is a USB stick with an RGB light-emitting diode that can be controlled via software. Blink (1) can take on any RGB color and blink, flash or just shine continuously. This is interesting for any kind of status display, without electronics or other hardware tinkering.

Before doing this, the blink (1) must be put into operation and the "blink1 tool" installed. After successful installation you can operate and control the blink (1) with "blink1-tool".

Explanation of the RGB parameters

There are two variants:

  1. "--rgb x, x, x": With the "--rgb" parameter you can control the three RGB basic colors using values ​​between 0 and 255.
  2. "--rgb xxxxxx": With the "--rgb" parameter you can control the three RGB basic colors via the hexadecimal color code from 00 to FF.

In addition, there is a fixed parameter for 7 colors (with white).

Examples for the application of the RGB parameter

Red:

blink1-tool --rgb 255,0,0 blink1-tool --rgb FF0000 blink1-tool --red

Green:

blink1-tool --rgb 0,255,0 blink1-tool --rgb 00FF00 blink1-tool --green

Blue:

blink1-tool --rgb 0,0,255 blink1-tool --rgb 0000FF blink1-tool --blue

From these three basic colors, you can mix other colors.

Yellow:

blink1-tool --rgb 255,255,0 blink1-tool --rgb FFFF00 blink1-tool --yellow

Pink (magenta):

blink1-tool --rgb 255,0,255 blink1-tool --rgb FF00FF blink1-tool --magenta

Turquoise (cyan):

blink1-tool --rgb 0,255,255 blink1-tool --rgb 00FFFF blink1-tool --cyan

Black (off):

blink1-tool --rgb 0,0,0 blink1-tool --rgb 000000 blink1-tool --off

White:

blink1-tool --rgb 255,255,255 blink1-tool --rgb FFFFFF blink1-tool --white

Orange:

blink1-tool --rgb 255,153,0 blink1-tool --rgb FF9900

If you want a certain color, you need a color code generator with which you can select or set a color and then generate the color code in decimal or hexadecimal notation.

Other related topics:

Experience electronics with the Raspberry Pi

All-in-one electronics starter kit for every Raspberry Pi

With breakout board, ribbon cable, breadboard and many electronic components. The whole package is rounded off with an English-language tutorial with programming examples in C, Python and Java for download.

I want that!

Experience electronics with the Raspberry Pi

All-in-one electronics starter kit for every Raspberry Pi

With breakout board, ribbon cable, breadboard and many electronic components. The whole package is rounded off with an English-language tutorial with programming examples in C, Python and Java for download.

I want that!