/
SetColor

SetColor

Purpose

Set the color of the NeoPixel.

When to use

Whenever

Where to use

Anywhere

Returns

N/A

Main prototype and parameters

void CrcLib::SetColor(const Color color)

The following parameters must be passed to the function for it to work properly:

  • The color to set the NeoPixel (see the Color page)

Overloads

This function does not have any overloads. It can only be used as described by the main prototype.

Examples

#include <CrcLib.h> CrcLib::Timer timer; void setup() { CrcLib::Initialize(); timer.Start(2000); } void loop() { CrcLib::Update(); if (timer.IsFinished()) { // 2s has elapsed CrcLib::SetColor(BLUE_LOW); } }

Related articles

Content by Label

Related content

PlayTune
Read with this
SetColor {FR}
More like this
ShowColorPattern
ShowColorPattern
More like this
ShowColorPattern {FR}
ShowColorPattern {FR}
More like this