sk6212b RGBWleds FAB LED library easy code seems to crash Arduino

Hey guys, any idea why this won’t work?

I’ve simply got 5 LEDs attached.
This is a modified library example, I just want to light up to five sections of LEDs individually but it doesn’t seem to work with these routines…

////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/// Fast Adressable Bitbang LED Library
/// Copyright (c)2015, 2017 Dan Truong
///
/// This is the simplest exmple to use the library.
///
/// This example is for an Arduino Uno board with a LED strip connected to
/// port D6. Targetting any other board requires you to change something.
/// The program sends an array of pixels to display on the strip.
/// "strip" represents the hardware: LED types and port configuration,
/// "pixels" represents the data sent to the LEDs: a series of colors.
///
/// Wiring:
///
/// The LED strip DI (data input) line should be on port D6 (Digital pin 6 on
/// Arduino Uno). If you need to change the port, change all declarations below
/// from, for example from "ws2812b<D,6> myWs2812" to "ws2812b<B,4> myWs2812"
/// if you wanted to use port B4.
/// The LED power (GND) and (+5V) should be connected on the Arduino Uno's GND
/// and +5V.
///
/// Visual results:
///
/// If the hardware you use matches this program you will see the LEDs blink
/// repeatedly red, green, blue, white, in that order.
///
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

#include <FAB_LED.h>

// Declare the LED protocol and the port
sk6812b<B,3>  strip;

// The Pixel mapping
const uint8_t numPixels = 5;
const uint8_t WurmPixelsFirst = 0;
const uint8_t MurmelPixelsFirst = 1;
const uint8_t WalzePixelsFirst = 2;
const uint8_t LolliPixelsFirst = 3;

const uint8_t WurmPixelsLast = 0;
const uint8_t MurmelPixelsLast = 1;
const uint8_t WalzePixelsLast = 2;
const uint8_t LolliPixelsLast = 3;
//pin 5 is unused


// How bright the LEDs will be (max 255)
const uint8_t maxBrightness = 16;

// the game buttin pins
//const int SchlafMurmelPin = 2;     // the number of the pushbutton pin
//const int MurmelrichtigPin =  3; 
//const int MurmelfalschPin =  4;  
//const int WalzerichtigPin =  5;  
//const int WalzefalschPin =  6;  
//const int WurmrichtigPin =  7;  
//const int WurmfalschPin =  8;  
//const int LollirichtigPin =  9; 
//const int LollifalschPin =  10;  

//  pinMode(SchlafMurmelPin, INPUT);
//  pinMode(MurmelrichtigPin, INPUT);
//  pinMode(MurmelfalschPin, INPUT);
//  pinMode(WalzerichtigPin, INPUT);
//  pinMode(WalzefalschPin, INPUT);  
//  pinMode(WurmrichtigPin, INPUT);
//  pinMode(WurmfalschPin, INPUT);
//  pinMode(LollirichtigPin, INPUT);
//  pinMode(LollirichtigPin, INPUT);

      
// The pixel array to display
grbw  pixels[numPixels] = {};


////////////////////////////////////////////////////////////////////////////////
// Sets the array to specified color
////////////////////////////////////////////////////////////////////////////////
void updateColors(char r, char g, char b, char w)
{
  for(int i = 0; i < numPixels; i++)
  {
    pixels[i].r = r;
    pixels[i].g = g;
    pixels[i].b = b;
    pixels[i].w = w;
  }
}

void updateMurmel(char r, char g, char b, char w)
{
  for(int i = 0; i = (numPixels-2); i++)
  {
    pixels[i].r = r;
    pixels[i].g = g;
    pixels[i].b = b;
    pixels[i].w = w;
  }
}
//
//void updateWalze(char r, char g, char b, char w)
//{
//  for(int k = MurmelPixelsFirst; k < MurmelPixelsLast; k++)
//  {
//    pixels[k].r = r;
//    pixels[k].g = g;
//    pixels[k].b = b;
//    pixels[k].w = w;
//  }
//}
//
//void updateWurm(char r, char g, char b, char w)
//{
//  for(int l = WalzePixelsFirst; l = WalzePixelsLast; l++)
//  {
//    pixels[l].r = r;
//    pixels[l].g = g;
//    pixels[l].b = b;
//    pixels[l].w = w;
//  }
//}
//
//void updateLolli(char r, char g, char b, char w)
//{
//  for(int m = LolliPixelsFirst; m = LolliPixelsLast; m++)
//  {
//    pixels[m].r = r;
//    pixels[m].g = g;
//    pixels[m].b = b;
//    pixels[m].w = w;
//  }
//}

////////////////////////////////////////////////////////////////////////////////
// This method is automatically called once when the board boots.
////////////////////////////////////////////////////////////////////////////////
void setup()
{
  pinMode(SchlafMurmelPin, INPUT);
  pinMode(MurmelrichtigPin, INPUT);
  pinMode(MurmelfalschPin, INPUT);
  pinMode(WalzerichtigPin, INPUT);
  pinMode(WalzefalschPin, INPUT);  
  pinMode(WurmrichtigPin, INPUT);
  pinMode(WurmfalschPin, INPUT);
  pinMode(LollirichtigPin, INPUT);
  pinMode(LollirichtigPin, INPUT);
  
  // Turn off the LEDs
  strip.clear(2 * numPixels);
}

////////////////////////////////////////////////////////////////////////////////
/// @brief This method is automatically called repeatedly after setup() has run.
/// It is the main loop.
////////////////////////////////////////////////////////////////////////////////
void loop()
{
  
 // Write the pixel array warm white
  updateColors( 0, 0, 0, maxBrightness);
  // Display the pixels on the LED strip
  strip.sendPixels(numPixels, pixels);
  // Wait 0.1 seconds
  delay(100);
  // Write the pixel array red

  
  updateMurmel(maxBrightness, 0 , 0, 0);
  // Display the pixels on the LED strip
  strip.sendPixels(numPixels, pixels);
  // Wait 0.1 seconds
  delay(100);
//
//  // Write the pixel array green
//  updateWalze(0, maxBrightness, 0, 0);
//  // Display the pixels on the LED strip
//  strip.sendPixels(numPixels, pixels);
//  // Wait 0.1 seconds
//  delay(100);
//
//  // Write the pixel array blue
//  updateWurm(0, 0, maxBrightness, 0);
//  // Display the pixels on the LED strip
//  strip.sendPixels(numPixels, pixels);
//  // Wait 0.1 seconds
//  delay(100);
//
//  // Write the pixel array white
//  updateLolli( maxBrightness, maxBrightness, maxBrightness, 0);
//  // Display the pixels on the LED strip
//  strip.sendPixels(numPixels, pixels);
//  // Wait 0.1 seconds
//  delay(100);
//
// 

  // Turn off the LEDs
  strip.clear(numPixels);
  delay(500);
}

Thanks!!

Please describe exactly what the problem is you're experiencing. "seems to crash Arduino" and "doesn't seem to work" are too vague.

It also might be helpful if told us where you got the FAB LED library from.