long Pause_1=300;
int PIN [7] =
{12, 14,27, 26, 25, 33, 32};
boolean Pattern001[5] [7] =
/* 5 Runs = Zeilen --- 7 LEDs = Spalten*/
{
{0, 0, 0, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 1},
{0, 0, 0, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 1},
{0, 0, 0, 0, 0, 0, 0},
};
boolean Pattern002[7] [7] =
/* 7 Runs = Zeilen --- 7 LEDs = Spalten*/
{
{1, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 1, 0},
{0, 0, 1, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 0, 1, 0, 0},
{0, 1, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 1},
};
boolean Pattern003[13] [7] =
/* 13 Runs = Zeilen --- 7 LEDs = Spalten*/
{
{1, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0},
};
void setup()
{
for (int i=0; i <=6; i++)
{
pinMode(PIN[i], OUTPUT);
}
}
void loop()
{
/*Pattern 001*/
for (int k=0; k <=4; k++) /*Zeile Muster*/
{
for (int l=0; l <= 6; l++) /*Spalte Muster*/
{
digitalWrite (PIN[l], Pattern001[k] [l]);
}
delay(Pause_1);
}
/*Pattern 002*/
for (int k=0; k <=6; k++) /*Zeile Muster*/
{
for (int l=0; l <= 6; l++) /*Spalte Muster*/
{
digitalWrite (PIN[l], Pattern002[k] [l]);
}
delay(Pause_1);
}
/*Pattern 003*/
for (int k=0; k <=12; k++) /*Zeile Muster*/
{
for (int l=0; l <= 6; l++) /*Spalte Muster*/
{
digitalWrite (PIN[l], Pattern003[k] [l]);
}
delay(Pause_1);
}
}
/*
digitalWrite (LED_1, LOW);
digitalWrite (LED_2, HIGH);
digitalWrite (LED_3, LOW);
digitalWrite (LED_4, LOW);
digitalWrite (LED_5, LOW);
digitalWrite (LED_6, HIGH);
digitalWrite (LED_7, LOW);
delay(Pause_1);
digitalWrite (LED_1, LOW);
digitalWrite (LED_2, LOW);
digitalWrite (LED_3, HIGH);
digitalWrite (LED_4, LOW);
digitalWrite (LED_5, HIGH);
digitalWrite (LED_6, LOW);
digitalWrite (LED_7, LOW);
delay(Pause_1);
digitalWrite (LED_1, LOW);
digitalWrite (LED_2, LOW);
digitalWrite (LED_3, LOW);
digitalWrite (LED_4, HIGH);
digitalWrite (LED_5, LOW);
digitalWrite (LED_6, LOW);
digitalWrite (LED_7, LOW);
delay(Pause_1);
digitalWrite (LED_1, LOW);
digitalWrite (LED_2, LOW);
digitalWrite (LED_3, HIGH);
digitalWrite (LED_4, LOW);
digitalWrite (LED_5, HIGH);
digitalWrite (LED_6, LOW);
digitalWrite (LED_7, LOW);
delay(Pause_1);
digitalWrite (LED_1, LOW);
digitalWrite (LED_2, HIGH);
digitalWrite (LED_3, LOW);
digitalWrite (LED_4, LOW);
digitalWrite (LED_5, LOW);
digitalWrite (LED_6, HIGH);
digitalWrite (LED_7, LOW);
delay(Pause_1);
}
}
*/