set All

Make all of the pixels on the strip show one color.

light.setAll(0xff0000);

Parameters

  • rgb: a number that is the RGB color for all of the pixels.

Example

Set all of the pixels to pink.

light.setAll(0xff007f)

||rgb||

circuit-playground