xl97:
Hi gang-I have a question on using arrays.
normal usage:
byte buttons[] = {5, 6, 3, 9};
can it be done like this instead:
const int safetyPin = 5;
const int normalPin = 6;
const int autoPin = 3;
const int reloadPin = 9;byte buttons[] = {safetyPin, normalPIn, autoPin, reloadPin};
I guess an arrays of variables? or references to pin(s)?
this way I can also refer to them by pin name else where..etc..Thanks
Learn about enumerators (enum), they can also help you keep your code straighter.