This is probably a silly question but I can't seem to find the answer.......
typedef struct {
byte a;
byte b;
} button_t;
button_t values[10];
Is it possible to populate the values in one of the array elements like this:
values[].a = (1,2,3,4,5......)
I know this doesn't work but hopefully you will get what I am trying to do.
Or do I need to do this:
values[0].a = 1;
values[1].a = 2;
values[2].a = 3;
.
.
.
.
Thanks in advance.