The multicolour LED or RGB LED (Red Green Blue Light Emitting Diode) (WS2821B) is used to alert the user with light.

Examples:

  1. To show when the soil is too wet or too dry or hydrated enough.
  2. Smart Traffic Light: distance sensor detects more traffic on one side and changes LED colours to let traffic move.

Pin:

Colours:

This RGB colour wheel can be used to get more colours.

Library:

Code: