int Led1a = A0;
int Led2a = A1;
int Led3a = A2;
int Led4a = A3;
int Led5a = A4;
int Led6a = A5;
int Led1b = 8;
int Led2b = 9;
int Led3b = 10;
int Led4b = 11;
int Led5b = 12;
int Led6b = 13;
void setup()
{
pinMode(Led1a, OUTPUT);
pinMode(Led2a, OUTPUT);
pinMode(Led3a, OUTPUT);
pinMode(Led4a, OUTPUT);
pinMode(Led5a, OUTPUT);
pinMode(Led6a, OUTPUT);
pinMode(Led1b, OUTPUT);
pinMode(Led2b, OUTPUT);
pinMode(Led3b, OUTPUT);
pinMode(Led4b, OUTPUT);
pinMode(Led5b, OUTPUT);
pinMode(Led6b, OUTPUT);
attachInterrupt(0, TurnOn1, RISING);
attachInterrupt(1, TurnOn2, RISING);
}
void loop()
{
}
void TurnOn1()
{
digitalWrite(Led1b, LOW);
digitalWrite(Led2b, LOW);
digitalWrite(Led3b, LOW);
digitalWrite(Led4b, LOW);
digitalWrite(Led5b, LOW);
digitalWrite(Led6b, LOW);
digitalWrite(Led1a, HIGH);
digitalWrite(Led2a, HIGH);
digitalWrite(Led3a, HIGH);
digitalWrite(Led4a, HIGH);
digitalWrite(Led5a, HIGH);
digitalWrite(Led6a, HIGH);
}
void TurnOn2()
{
digitalWrite(Led1a, LOW);
digitalWrite(Led2a, LOW);
digitalWrite(Led3a, LOW);
digitalWrite(Led4a, LOW);
digitalWrite(Led5a, LOW);
digitalWrite(Led6a, LOW);
digitalWrite(Led1b, HIGH);
digitalWrite(Led2b, HIGH);
digitalWrite(Led3b, HIGH);
digitalWrite(Led4b, HIGH);
digitalWrite(Led5b, HIGH);
digitalWrite(Led6b, HIGH);
}