What do i do wrong? long array problems.
Anubisbot
Posts: 112
Hi , i have a question.
I need to have a long array what holds the pins for my rgb leds. since they are all over the place.
So i have now the array and want to fill in the values byte based .
But i get a error {variable needs a operator ??}
if i use a normal long, it woks fine but as soon i have it as array it gives me this error what can i do to make it work?
Best regards Anubisbot
I need to have a long array what holds the pins for my rgb leds. since they are all over the place.
So i have now the array and want to fill in the values byte based .
But i get a error {variable needs a operator ??}
VAR long RGB_state[noparse][[/noparse]TableSize] long RGBStack[noparse][[/noparse]50] byte Manuel_Mode long LEDS[noparse][[/noparse]8] byte cog PUB Start|i LEDS[noparse][[/noparse]0].byte [noparse][[/noparse] 0]:=4 ''red LEDS[noparse][[/noparse]0].byte [noparse][[/noparse] 1]:=6 ''green LEDS[noparse][[/noparse]0].byte [noparse][[/noparse] 2]:=8 ''blue LEDS[noparse][[/noparse]0].byte [noparse][[/noparse] 3]:=8 ''Placeholder
if i use a normal long, it woks fine but as soon i have it as array it gives me this error what can i do to make it work?
Best regards Anubisbot
Comments
LEDS.byte[noparse][[/noparse] 0 ]
LEDS.byte[noparse][[/noparse] 1 ]
If you want the low order (first) byte of the 2nd long, do
LEDS.byte[noparse][[/noparse] 4 ]
Thanks