What is power in Chainable Library

Hello I fiddle with my RGB String

and I can’t compile this because of power ?

/*

  • Example of using the ChainableRGB library for controlling a Grove RGB.
  • This code fades in an out colors in a strip of leds.
    */

#include <ChainableLED.h>

#define NUM_LEDS 100

#define ClkPin 7
#define DataPin 8

ChainableLED leds(ClkPin, DataPin, NUM_LEDS);

void setup()
{
leds.init();
}

byte power = 0;

void loop()
{
for (byte i=0; i<NUM_LEDS; i++)
{
if (i%2 == 0)
leds.setColorRGB(i, power, 0, 0);
else
leds.setColorRGB(i, 0, 255-power, 0);
}
power+= 10;

delay(10);
}

Hi. Please read the forum guide in the sticky post, then modify your post above and put your code inside code tags.

Also post the complete set of error messages. Put these inside code tags also.

Where did you get the library from ? The ChainableLED library available from the IDE Library Manager does not have an init() function

Where ? from Github

ats3788:
Where ? from Github

You are wasting our time.

Check out the cpp file, there is still the init function. I downloaded this month ago. You are not a nice Person !!!

Hello
Power is just a global uint8_t

ats3788:
Where ? from Github

ats3788:
Check out the cpp file, there is still the init function. I downloaded this month ago. You are not a nice Person !!!

OK. Here is the ChainableLED.h on GitHub

/*
Copyright (C) 2012 Paulo Marques (pjp.marques@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of 
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all 
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/* 
 * Library for controlling a chain of RGB LEDs based on the P9813 protocol.
 * E.g., supports the Grove Chainable RGB LED product.
 *
 * Information about the P9813 protocol obtained from:
 * http://www.seeedstudio.com/wiki/index.php?title=Twig_-_Chainable_RGB_LED
 */



#ifndef __ChainableLED_h__
#define __ChainableLED_h__

#include "Arduino.h"

#define _CL_RED             0
#define _CL_GREEN           1
#define _CL_BLUE            2
#define _CLK_PULSE_DELAY    20

class ChainableLED
{
public:
    ChainableLED(byte clk_pin, byte data_pin, byte number_of_leds);
    ~ChainableLED();
    
    void setColorRGB(byte led, byte red, byte green, byte blue);
    void setColorHSB(byte led, float hue, float saturation, float brightness);

private:
    byte _clk_pin;
    byte _data_pin;
    byte _num_leds; 

    byte* _led_state;
    
    void clk(void);
    void sendByte(byte b);
    void sendColor(byte red, byte green, byte blue);
};

#endif

I don't see an init() function

ats3788:
You are not a nice Person !!!

Correct, I'm not nice to people who waste the time of others and don't follow forum rules. Why should I be?