Hello,
Still trying to get the hang of programing so here is my noobie question.
Can I define a list of int's followed by a list of int's that are made of various combinations of the first set? A mouthful I know .
here is a simple example for dice, that does not work, of what i am trying to do:
int A = 3;
int B = 4;
int C = 5;
int D = 6;
int roll1 = A;
int roll2 = B;
int roll3 = A & B;
int roll4 = B & C;
int roll5 = A & B & C;
int roll6 = B & C & D;
void setup() {
pinMode(A, OUTPUT);
pinMode(B, OUTPUT);
pinMode(C, OUTPUT);
pinMode(D, OUTPUT);
}
void loop() {
digitalWrite(roll1, HIGH);
delay(1000);
digitalWrite(roll1, LOW);
delay(1000);
digitalWrite(roll6, HIGH);
delay(1000);
digitalWrite(roll6, LOW);
delay(1000);
}
It verifies just fine but does not do what i want it to. I tried a couple of different variations however none worked.... obviously.

Thanks