Running into this issue where I'm doingL
#define NUM_COLORS 4
CRGB UsableColors[NUM_COLORS] = {CRGB::Synth1, CRGB::Synth2, CRGB::Synth3, CRGB::Synth4};
but when i run sizeof it tells me it's 12...
Unless im misunderstanding something, it should be 4... right?
blh64
2
sizeof() tells you how many bytes something is. A CRGB type must be 3 bytes large.
If you want to know the number of elements in an array:
cont int arrayCount = sizeof(array) / sizeof(array[0]);
Ah, I understood sizeof in this context to be length since .length isnt a thing... Thanks!