Hi!
How to fix this error?
Also, maybe there are some way, how to make arrays shorter?
Thanks!
CHSV and INT are two different data types, just as char and long are different data types.
I've never worked with CHSV, but I do use CRGB which is three bytes, so it can never be a int.
What are you trying to do?
Also
josta [20]
does not exist. It addresses the 21st item in the array of 20 items, which your program doesn't have permission to use. AKA, your program would crash here.
What are you trying to do?
Yes, please explain. It's not at all clear what this code is intended to do. Why do you want to make the arrays shorter? What is their purpose?
SteveMann:
What are you trying to do?
I'm learning and practicing how to use arrays in arduino programming, before making a big LED project.
In this case, I want to make some arrays work on LED strip. First of all I want to make all the leds of "josta" array turning red. After that I want to turn on different FastLED effects on different arrays at the same time.
I'm learning and practicing how to use arrays in arduino programming, before making a big LED project.
You need to start at the beginning by reading up on arrays in C/C++ (there are lots of short tutorials on line).
The elements "josta" are indexed 0 to 19, and functions cannot return arrays by that method.