Hi everyone,
A newbie question. I have created a class (simplified version), with the .h as below:
class LimitlessLED {
public:
LimitlessLED();
void sendUDP(byte *cmd);
void setBrightness(int level);
void setColour(int col);
void setBrightness(int gp, int level);
void setColour(int gp, int clr);
int control(String cmd);
private:
byte white_ALL_off[2];
};
With the constructor in .cpp:
LimitlessLED::LimitlessLED() {
this->white_ALL_off = {0x39,0x00};
}
I get compilation error with error: assigning to an array from an initializer list
What is the problem with initialising default array variables in a constructor?
Thank you for your guidance!
Regards,
Tim