Questions tagged [fastled]

The FastLED library is a popular library for easily and efficiently controlling a wide variety of pixel-addressable RGB LED chipsets, like the WS2812, APA102, and others. Use this tag for questions specifically about FastLED usage and development.

FastLED is a library for easily and efficiently controlling a wide variety of RGB, pixel-addressable LED chipsets, like the ones sold by AdaFruit under the brand names Neopixel and DotStar. These chips let you send an RGB color to a chip which contains red, blue, and green LEDs and they maintain that color. Popular LED chips include the WS2812b and family, the APA102c, and a bunch of related chips. Typically you control them by hooking them up to an Arduino or similar controller, programmed in C++, and send strings of bits through an output pin to the chips to specify the colors you want.

FastLED makes it easy to define an array of RGB colors, update it, and send it to your LEDs quickly.

In addition to writing to the LEDs, this library also includes a number of functions for high-performing 8-bit math for manipulating your RGB values, as well as low level classes for abstracting out access to pins and SPI hardware, while still keeping things as fast as possible. Tested with Arduino up to 1.6.5 from arduino.cc.

Advantages of FastLED:

Quick start for new developers - hook up your LEDs and go, no need to think about specifics of the led chipsets being used

Zero pain switching LED chipsets - you get some new LEDs that the library supports, just change the definition of LEDs you're using, et. voila! Your code is running with the new LEDs.

High performance - with features like zero cost global brightness scaling, high performance 8-bit math for RGB manipulation, and some of the fastest bit-bang'd SPI support around, FastLED wants to keep as many CPU cycles available for your LED patterns as possible.

69 questions
0
votes
1 answer

General approach to temporal dithering

I'm looking for some input on a general approach to implement temporal dithering in processing. Currently I have a processing sketch which generates a hex file that can be sent to an APA102 LED strip over SPI. The framerate which I would be able to…
Sharky
  • 31
  • 5
0
votes
2 answers

Controling above 512 LED's with arduino and FASTLED

I am making an LED board that will have approximately 900 individually addressable LED's (WS2812B) From my experiments, I think I can't safely control about 512 LED's before I start to exhaust an Arduino UNO's modest memory and getting strange…
FrankU32
  • 311
  • 1
  • 3
  • 18
0
votes
2 answers

Error to create header file and use CRGB LED array from FastLED library

I'm working on Arduino project with addressable LEDs and I'm using the FastLED.h library. To simplify my program, I want to create a library called LedsHorloge.h from which one I'll call the function Jauge(int tour, int numberLeds, int brightness,…
FrancNovation
  • 349
  • 6
  • 20
0
votes
1 answer

Why does Adafruit but not fastLED work with WS2812 LED strips and Arduino Nano?

I am using the Adafruit_NeoPixel library and Arduino Nano to light up my WS2812 RGB LED strips. Now I had to switch to the fastLED library because I fond an awesome program, but strangely, using any of the demos my LEDs remain black. With…
ZMK
  • 43
  • 5
0
votes
2 answers

FastLED: How can I set an entire strip to one color, without using an array?

I'm currently working off an Arduino Uno. I was having issues with running out of RAM, and I managed to fix them. Then the person who this project is for let me know that there is another strip of 150 LEDs which are all one color. This wouldn't be…
Seph Reed
  • 8,797
  • 11
  • 60
  • 125
0
votes
1 answer

ESP8266 Multiple LED Strip Control

here's what I got. ESP8266-12E (actually built by NodeMcu, but the pinout is same as the link) https:// acrobotic.com/acr-00018 LED strip uses WS2811 chip The code I borrowed from works and partially works with the mods I made. I'll just post the…
Fields
  • 21
  • 3
0
votes
0 answers

Using a library object in a separate class

I'm trying to separate my functions of my arduino FastLED project, and I want to put them into a class themselves. Now these "modes", as I call them, use some functions of the FastLED library. The error I'm currently getting is that I use a…
0
votes
1 answer

Color Hue using FASTLED and WS2812b with a teensy

Please be patient with me as I'm still new to coding using the FASTLED Library. I'm using a teensy 3.2 with the fastled library. I have a strip of 144LED of WS2812B and I'm trying to create a color hue consisting of 3 colors( i want the first…
0
votes
0 answers

Multiple If statements for Arduino

I'm new to this site and also the wonderful world of Arduino, I have been playing around with a Leonardo board and some Neopixel LEDS ( WS2812B ). I'm currently trying to set predefined colors on the LEDs with a single Pot, but also have an…
0
votes
1 answer

Arduino FastLED Compiling errors due to depreciation

I'm working on an Arduino controlled Christmas tree with 500 fully addressable LEDs. I'm using the FastLED library and currently(though I'll be updating some of the animations to be controlled by sampling audio) I'm using the code from…
Front_End_Dev
  • 1,205
  • 1
  • 14
  • 24
0
votes
1 answer

RGB LED Color Fading/Transition Libraries

I'm looking for libraries of algorithms for color transitions over time. Somehow I haven't found the right search terms to find a library that would fit my needs, but writing everything from scratch feels silly. I've made good headway, but...…
Ryan
  • 1,171
  • 1
  • 10
  • 23
0
votes
2 answers

C Pointer/reference to array of structures from within function

I got a problem with making a custom function on top of the FastLed library for Arduino. The array of leds, structures called CRGB needs to be altered from inside the function drawGradient to set the colors of the LEDs. There must be something wrong…
seymar
  • 3,993
  • 6
  • 25
  • 30
0
votes
2 answers

Code-sense in embedXcode doesn't hightlight syntax for the library I've included

Code-sense mostly works-- all of the core Arduino types are hightlighted properly. But no types referencing the FastLED library are. My code compiles fine. And, syntax is hightlighted properly in FastLED.h How can I make use of code-sense in…
-1
votes
1 answer

"Breathing" leds using FastLED and Arduino Nano

Uploading this to my Nano connected to a WS2812 led strip just freezes the current display and does not start the sequence. I can upload other Examples to the circuit and they work fine. Still new to FastLED and Arduino. The problem appeared when I…
-1
votes
2 answers

Arduino : How To repeat a task until new data received Bluetooth

I'm trying to light leds on and off in a loop when I receive data from BT. But when I send "r" through BT the led strip turns ON and OFF and does it in a loop but when I send "b" or "g" or "o" it doesn't change or turn off but keeps looping in first…
Adlan N
  • 3
  • 1