ws2812b led

hello im new to coding and need some assistance with learning how to use ws2812b leds. i have a project im working on and I am not sure how to control the leds to be completely honest. i am not sure how to make them all light up at once with one input and stop when the input is off. if anyone can assist id be grateful.

Two best options as I see it are:

  1. FastLED library: website

  2. Adafruit NeoPixel library: Uberguide

Both come with advantages and disadvantages. Both libraries can be added using the IDE = Sketch/Include Library/Manage Libraries. Both have built-in examples that will do something very similar to what you want.

A quick search on Instructables and the Arduino Forums will pull up a lot of different projects with code.

A quick search on Instructables

Is going to produce a lot of crap. Avoid this site at all costs.