I would like to do pin assignments by using an array.
So I'm looking for a way to and store the pin names in the array.
Ordinary code would look like this to assign pin A1 to a certain actor:
#define actor2 A1; // actor 2 is connected to A1
I would like to use an array like this:
int nmbr_actors =8; // number of actors: 8
'string' actor_pin[nmbr_actors]; // an array containing the pin for each actor, identified by the actor number
actor_pin = A1; // assigning pin A1 to actor 2
act_actor = 2; // actual actor to control is actor 2
Thank you for any help,