Using SK9822s with Pro Micro, not able to get LEDs lit up.

Using SK9822s with Pro Micro, not able to get LEDs lit up.

Here’s a thread I made on the arduino forum for more information with sketch and everything on my second post: https://forum.arduino.cc/index.php?topic=498711.msg3402663#msg3402663

Any ideas? This is my first time doing any of this, so I’m learning as I go, however I can’t seem to get it working. At one point the first LED turned white, not sure how or why, but I can’t seem to reproduce it.

Okay, if I change DATAPIN to 15 and CLOCK_PIN to 16, the first LED started blinking blue, but that’s it.

@Andy_Tran

I think that’s all that sketch does.

Maybe your strip color order is different so you get blue when it should be red.

Your sketch is working, but your RGB colour order is off. Swap the B and R, so use BGR instead of RGB like this
FastLED.addLeds<SK9822, DATA_PIN, CLOCK_PIN, BGR>(leds, NUM_LEDS);

Alright thanks guys! Switching to BGR worked! What’s a script I can use to test all 60 LEDs?

Goto fastled>examples in arduino ide and select demoreel100.

Set the number of leds and type and pin defines for your setup and it should work

Getting an error on compile:

Arduino: 1.8.4 (Windows 10), Board: “Arduino Leonardo”

In file included from D:\Documents\Arduino\FastLED\examples\DemoReel100\DemoReel100.ino:1:0:

D:\Documents\Arduino\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.006

pragma message “FastLED version 3.001.006”

                 ^

In file included from D:\Documents\Arduino\libraries\FastLED/FastLED.h:51:0,

             from D:\Documents\Arduino\FastLED\examples\DemoReel100\DemoReel100.ino:1:

D:\Documents\Arduino\libraries\FastLED/fastpin.h: In instantiation of ‘class FastPin<66u>’:

D:\Documents\Arduino\libraries\FastLED/fastspi_bitbang.h:23:50: required from ‘class AVRSoftwareSPIOutput<15u, 66u, 1u>’

D:\Documents\Arduino\libraries\FastLED/fastspi.h:30:7: required from ‘class SPIOutput<15u, 66u, 1u>’

D:\Documents\Arduino\libraries\FastLED/chipsets.h:94:6: required from ‘class LPD8806Controller<15u, 66u, (EOrder)10u, 1u>’

D:\Documents\Arduino\libraries\FastLED/FastLED.h:236:66: required from ‘static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with ESPIChipsets CHIPSET = (ESPIChipsets)6u; unsigned char DATA_PIN = 15u; unsigned char CLOCK_PIN = 66u]’

D:\Documents\Arduino\FastLED\examples\DemoReel100\DemoReel100.ino:32:64: required from here

D:\Documents\Arduino\libraries\FastLED/fastpin.h:206:2: error: static assertion failed: Invalid pin specified

static_assert(validpin(), “Invalid pin specified”);

^

exit status 1
Error compiling for board Arduino Leonardo.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.


Here’s the sketch: #include "FastLED.h"FASTLED_USING_NAMESPACE// FastLED "100-lines-of-code - Pastebin.com

Nevermind! I didn’t include CLK_PIN , it’s compiling now

Welcome to the addicting world of FastLED!