In my code i’m using the following command in the setup:
SPEED is declared as:
uint8_t SPEED = 40;
But unfortunately the compiler says the following:
'class CFastLED' has no member named 'setSpeed'|
I’m including ‘FastLED.h’ library, and also tried including ‘FastLEDPainter.h’, but unfortunately without any difference yet.
Now, when i look at the documentation for the FastLEDPainter library, it says the following:
void setSpeed(int16_t speed) set the speed of the brush. since sub-pixel speed is used, one pixel per iteration is (1<<12) or 4095
(Found at the following page: GitHub - DedeHai/FastLEDPainter: Arduino library for easy creation of LED strip animations, based on the FastLED library. )
Shouldn’t I be abled to use the code as mentioned above?
Or, how could i make such a function? Preferably without delays as i’m using a rotary encoder and oled simultaneously with the led strips.