79Views1Replies

Author Options:

How to blink a single ws2812b led? Answered

Hi,

I am writing a code which include a segment below:

if (sensorValue >= 500)
{
   blue=255;
   red=0;

  
  }
  else {
   blue=0;
    red=255;

The above code made the led show either red or blue.but I wanted the LED(a single ws2812b) to blink in RED.but i don't know how to input the value.any suggestion will be greatly appreciated.

Shanno.G

Tags:led

Discussions

0
None
steveastrouk

3 years ago

You'll need the WS2012 library for the Arduino - have you got it ?