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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4adfde7e-cb2a-4981-a7b4-686e781a81f6/Output_LED-01.jpg

Colours:

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8861f7fd-e6aa-48aa-8ba8-9c3f2670778b/RGB.png

Library:

Code: