Hi, I want to use an array to pass Numeric data from a master to slaves.
I started using
char data[16] = {0};
But then saw an example that used
byte data[16] = {0};
I am using the data[x] to give me a range of 0 to 255 rather than waste an extra byte for "int"
e.g.
data[0] = 43;
data[1] = 19;
...
data[15] = 209;
The question is, which would be a preferred array type (and why) or doesn't it matter?
I need the numeric data[x] to be used by the slave as a switch value
switch(data[0])
{ case 43:
// do something
break
}
switch(data[1])
{ case 11:
// do something
break
}
Thanks