Thanks @JarkkoL -- that's closer to what I was aiming for, but I was hoping (for clarity) to have it all on one line without having to invent new names for all the intermediate variables like pulseOn[] -- I'll have a couple of dozen of those.
I guess C can't do something like:
Code:
Key keyOn = {"On", &{9070,4480, 610,530, 600,530, 610,520, 600,530, 00}};
where the address of the list of integers is added to the structure ? ( but I guess that is what is happing with the string for the Name ?)
Also, the
syntax and
Code:
Key OnKey = {"On", {9070,4480, 610,530, 600,530, 610,520, 600,530, 00}};
work on gcc on my Mac. It seems to be a feature of C99 -- does Arduino use that ?