hi all need help trying to get a orange colour led to rotate round some leds using this code found on internet was white put in orange in the CRGB::Orange but get green any help would be great thanks
http://pastebin.com/PiNazHzC
In this line: FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
The RGB is the setup for your strip. One of the examples helps you fix it, but change the order of RGB to BRG, GRB, RBG etc until it looks correct.
I would change crbg:: red whilst testing, then green, then blue and all should be good for orange
marmil
(Marc Miller)
June 10, 2016, 2:25pm
3
The FastLED example Kelvin mentions is named RGBCalibrate. Definatelly good to use to confirm the correct color order for your LEDs before continuing on.
#include "FastLED.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// RGB Calibration code
//
// Use this sketch to determine what the RGB ordering for your chipset should be. Steps for setting up to use:
// * Uncomment the line in setup that corresponds to the LED chipset that you are using. (Note that they
// all explicitly specify the RGB order as RGB)
// * Define DATA_PIN to the pin that data is connected to.
// * (Optional) if using software SPI for chipsets that are SPI based, define CLOCK_PIN to the clock pin
// * Compile/upload/run the sketch
// You should see six leds on. If the RGB ordering is correct, you should see 1 red led, 2 green
// leds, and 3 blue leds. If you see different colors, the count of each color tells you what the
// position for that color in the rgb orering should be. So, for example, if you see 1 Blue, and 2
// Red, and 3 Green leds then the rgb ordering should be BRG (Blue, Red, Green).
This file has been truncated. show original
@Kelvin_Mead @marmil Thanks for you help and advise its now working great