Library for RGB LEDs

Thank you for sharing that great library! Just what I was looking for... and more!

One thing... could setHoldingTime also work in HSB mode!!!

const int redPin = 9;
const int greenPin = 10;
const int bluePin = 11;
#include <RGBMood.h>
RGBMood m(redPin, greenPin, bluePin);
int step = 0;
int length = 4;
int choosenColorsHSB[] = {0, 90, 180, 270};  

void setup() {
  m.setHoldingTime(10000);                                  // Keep the same color for 10 seconds before fading again. ***Not working here***
  m.setFadingSteps(200);                                     // Fade with 200 steps.
  m.setFadingSpeed(20);                                     // Each step last 20ms. 
  length = (sizeof(choosenColorsHSB)/sizeof(int));   //length automatically adjust to the number of colors chosen
}

void loop() {
  if (not m.isFading()) {
    m.fadeHSB( choosenColorsHSB[step], 255, 255);
    step = step + 1;
    if (step >= length) step = 0;
    }
      
  m.tick();
}