Hauptmenü

 

 

8x8 led matrix heissen draht bauen zahlen

 

Code


#include <Sprite.h>
#include <Matrix.h>

int fehler = 0 ;
int zeit ;

Matrix mesLeds121110 = Matrix(12,11,10,1);
int X[] = {
0,7,6,5,4,3,2,1};
int Y[] = {
7,6,5,4,3,2,1,0};

void Unterprogramm0();

void setup()
{
pinMode( 7 , INPUT);
pinMode( 5 , OUTPUT);
mesLeds121110.clear();
mesLeds121110.setBrightness(15);
fehler = 0 ;
delay(5);

{
for (zeit; zeit<= ( 5 ); ++zeit )
{
mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[2],Y[1],HIGH);
mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[7],Y[1],HIGH);

mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[2],Y[2],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);

mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);

mesLeds121110.write(X[0],Y[6],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);

mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);

delay(300);

mesLeds121110.write(X[0],Y[1],LOW);
mesLeds121110.write(X[1],Y[1],LOW);
mesLeds121110.write(X[2],Y[1],LOW);
mesLeds121110.write(X[3],Y[1],LOW);
mesLeds121110.write(X[4],Y[1],LOW);
mesLeds121110.write(X[5],Y[1],LOW);
mesLeds121110.write(X[6],Y[1],LOW);
mesLeds121110.write(X[7],Y[1],LOW);

mesLeds121110.write(X[0],Y[2],LOW);
mesLeds121110.write(X[1],Y[2],LOW);
mesLeds121110.write(X[2],Y[2],LOW);
mesLeds121110.write(X[3],Y[2],LOW);
mesLeds121110.write(X[4],Y[2],LOW);
mesLeds121110.write(X[5],Y[2],LOW);
mesLeds121110.write(X[6],Y[2],LOW);
mesLeds121110.write(X[7],Y[2],LOW);

mesLeds121110.write(X[0],Y[5],LOW);
mesLeds121110.write(X[1],Y[5],LOW);
mesLeds121110.write(X[2],Y[5],LOW);
mesLeds121110.write(X[3],Y[5],LOW);
mesLeds121110.write(X[4],Y[5],LOW);
mesLeds121110.write(X[5],Y[5],LOW);
mesLeds121110.write(X[6],Y[5],LOW);
mesLeds121110.write(X[7],Y[5],LOW);

mesLeds121110.write(X[0],Y[6],LOW);
mesLeds121110.write(X[1],Y[6],LOW);
mesLeds121110.write(X[2],Y[6],LOW);
mesLeds121110.write(X[3],Y[6],LOW);
mesLeds121110.write(X[4],Y[6],LOW);
mesLeds121110.write(X[5],Y[6],LOW);
mesLeds121110.write(X[6],Y[6],LOW);
mesLeds121110.write(X[7],Y[6],LOW);

mesLeds121110.write(X[7],Y[3],LOW);
mesLeds121110.write(X[7],Y[4],LOW);
mesLeds121110.write(X[6],Y[3],LOW);
mesLeds121110.write(X[6],Y[4],LOW);

mesLeds121110.write(X[0],Y[3],LOW);
mesLeds121110.write(X[0],Y[4],LOW);
mesLeds121110.write(X[1],Y[3],LOW);
mesLeds121110.write(X[1],Y[4],LOW);

delay (300);

}

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[2],Y[1],HIGH);
mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[7],Y[1],HIGH);

mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[2],Y[2],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);

mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);

mesLeds121110.write(X[0],Y[6],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);

mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);

}

}

void loop()
{
if (digitalRead(7))
{
fehler = ( fehler + 1 ) ;
digitalWrite( 5 , HIGH );
delay( 200 );
Unterprogramm0();
delay( 50 );

if (( ( fehler ) == ( 1 ) ))
{

mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[2],Y[4],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[5],Y[4],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);

mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);

mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);
mesLeds121110.write(X[4],Y[1],HIGH);

mesLeds121110.write(X[5],Y[3],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[3],Y[1],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}

if (( ( fehler ) == ( 2 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);

mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[4],Y[3],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);

mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[0],Y[6],HIGH);

mesLeds121110.write(X[2],Y[1],HIGH);
mesLeds121110.write(X[2],Y[2],HIGH);

mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}

if (( ( fehler ) == ( 3 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);

mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[4],Y[3],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);

mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[0],Y[6],HIGH);

mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);

mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}


if (( ( fehler ) == ( 4 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[2],Y[1],HIGH);

mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[2],Y[2],HIGH);

mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);

mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[2],Y[4],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);

mesLeds121110.write(X[2],Y[3],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);

mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);

mesLeds121110.write(X[2],Y[6],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}

if (( ( fehler ) == ( 5 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);

mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[4],Y[3],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);

mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[0],Y[6],HIGH);

mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);

mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}


if (( ( fehler ) == ( 6 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);

mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[4],Y[3],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);

mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[0],Y[6],HIGH);

mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);

mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);

mesLeds121110.write(X[2],Y[1],HIGH);
mesLeds121110.write(X[2],Y[2],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}

if (( ( fehler ) == ( 7 ) ))
{

mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[2],Y[4],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);

mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);


delay( 600 );
digitalWrite( 5 , LOW );

}



if (( ( fehler ) == ( 8 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);

mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[4],Y[3],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);

mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[0],Y[6],HIGH);

mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);

mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);

mesLeds121110.write(X[2],Y[1],HIGH);
mesLeds121110.write(X[2],Y[2],HIGH);

mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );

}


if (( ( fehler ) == ( 9 ) ))
{

mesLeds121110.write(X[7],Y[1],HIGH);
mesLeds121110.write(X[7],Y[2],HIGH);
mesLeds121110.write(X[7],Y[3],HIGH);
mesLeds121110.write(X[7],Y[4],HIGH);
mesLeds121110.write(X[7],Y[5],HIGH);
mesLeds121110.write(X[7],Y[6],HIGH);

mesLeds121110.write(X[6],Y[1],HIGH);
mesLeds121110.write(X[6],Y[2],HIGH);
mesLeds121110.write(X[6],Y[3],HIGH);
mesLeds121110.write(X[6],Y[4],HIGH);
mesLeds121110.write(X[6],Y[5],HIGH);
mesLeds121110.write(X[6],Y[6],HIGH);

mesLeds121110.write(X[4],Y[1],HIGH);
mesLeds121110.write(X[4],Y[2],HIGH);
mesLeds121110.write(X[4],Y[3],HIGH);
mesLeds121110.write(X[4],Y[4],HIGH);
mesLeds121110.write(X[4],Y[5],HIGH);
mesLeds121110.write(X[4],Y[6],HIGH);

mesLeds121110.write(X[3],Y[1],HIGH);
mesLeds121110.write(X[3],Y[2],HIGH);
mesLeds121110.write(X[3],Y[3],HIGH);
mesLeds121110.write(X[3],Y[4],HIGH);
mesLeds121110.write(X[3],Y[5],HIGH);
mesLeds121110.write(X[3],Y[6],HIGH);

mesLeds121110.write(X[1],Y[1],HIGH);
mesLeds121110.write(X[1],Y[2],HIGH);
mesLeds121110.write(X[1],Y[3],HIGH);
mesLeds121110.write(X[1],Y[4],HIGH);
mesLeds121110.write(X[1],Y[5],HIGH);
mesLeds121110.write(X[1],Y[6],HIGH);

mesLeds121110.write(X[0],Y[1],HIGH);
mesLeds121110.write(X[0],Y[2],HIGH);
mesLeds121110.write(X[0],Y[3],HIGH);
mesLeds121110.write(X[0],Y[4],HIGH);
mesLeds121110.write(X[0],Y[5],HIGH);
mesLeds121110.write(X[0],Y[6],HIGH);

mesLeds121110.write(X[2],Y[5],HIGH);
mesLeds121110.write(X[2],Y[6],HIGH);

mesLeds121110.write(X[5],Y[1],HIGH);
mesLeds121110.write(X[5],Y[2],HIGH);

mesLeds121110.write(X[5],Y[5],HIGH);
mesLeds121110.write(X[5],Y[6],HIGH);

delay( 600 );
digitalWrite( 5 , LOW );
delay( 32000 );
delay( 32000 );
delay( 32000 );
delay( 32000 );
delay( 32000 );
delay( 32000 );
delay( 32000 );
delay( 32000 );
delay( 32000 );
}

}
}


void Unterprogramm0()
{
mesLeds121110.write(X[0],Y[0],LOW);
mesLeds121110.write(X[0],Y[1],LOW);
mesLeds121110.write(X[0],Y[2],LOW);
mesLeds121110.write(X[0],Y[3],LOW);
mesLeds121110.write(X[0],Y[4],LOW);
mesLeds121110.write(X[0],Y[5],LOW);
mesLeds121110.write(X[0],Y[6],LOW);
mesLeds121110.write(X[0],Y[7],LOW);

mesLeds121110.write(X[1],Y[0],LOW);
mesLeds121110.write(X[1],Y[1],LOW);
mesLeds121110.write(X[1],Y[2],LOW);
mesLeds121110.write(X[1],Y[3],LOW);
mesLeds121110.write(X[1],Y[4],LOW);
mesLeds121110.write(X[1],Y[5],LOW);
mesLeds121110.write(X[1],Y[6],LOW);
mesLeds121110.write(X[1],Y[7],LOW);

mesLeds121110.write(X[2],Y[0],LOW);
mesLeds121110.write(X[2],Y[1],LOW);
mesLeds121110.write(X[2],Y[2],LOW);
mesLeds121110.write(X[2],Y[3],LOW);
mesLeds121110.write(X[2],Y[4],LOW);
mesLeds121110.write(X[2],Y[5],LOW);
mesLeds121110.write(X[2],Y[6],LOW);
mesLeds121110.write(X[2],Y[7],LOW);

mesLeds121110.write(X[3],Y[0],LOW);
mesLeds121110.write(X[3],Y[1],LOW);
mesLeds121110.write(X[3],Y[2],LOW);
mesLeds121110.write(X[3],Y[3],LOW);
mesLeds121110.write(X[3],Y[4],LOW);
mesLeds121110.write(X[3],Y[5],LOW);
mesLeds121110.write(X[3],Y[6],LOW);
mesLeds121110.write(X[3],Y[7],LOW);

mesLeds121110.write(X[4],Y[0],LOW);
mesLeds121110.write(X[4],Y[1],LOW);
mesLeds121110.write(X[4],Y[2],LOW);
mesLeds121110.write(X[4],Y[3],LOW);
mesLeds121110.write(X[4],Y[4],LOW);
mesLeds121110.write(X[4],Y[5],LOW);
mesLeds121110.write(X[4],Y[6],LOW);
mesLeds121110.write(X[4],Y[7],LOW);

mesLeds121110.write(X[5],Y[0],LOW);
mesLeds121110.write(X[5],Y[1],LOW);
mesLeds121110.write(X[5],Y[2],LOW);
mesLeds121110.write(X[5],Y[3],LOW);
mesLeds121110.write(X[5],Y[4],LOW);
mesLeds121110.write(X[5],Y[5],LOW);
mesLeds121110.write(X[5],Y[6],LOW);
mesLeds121110.write(X[5],Y[7],LOW);

mesLeds121110.write(X[6],Y[0],LOW);
mesLeds121110.write(X[6],Y[1],LOW);
mesLeds121110.write(X[6],Y[2],LOW);
mesLeds121110.write(X[6],Y[3],LOW);
mesLeds121110.write(X[6],Y[4],LOW);
mesLeds121110.write(X[6],Y[5],LOW);
mesLeds121110.write(X[6],Y[6],LOW);
mesLeds121110.write(X[6],Y[7],LOW);

mesLeds121110.write(X[7],Y[0],LOW);
mesLeds121110.write(X[7],Y[1],LOW);
mesLeds121110.write(X[7],Y[2],LOW);
mesLeds121110.write(X[7],Y[3],LOW);
mesLeds121110.write(X[7],Y[4],LOW);
mesLeds121110.write(X[7],Y[5],LOW);
mesLeds121110.write(X[7],Y[6],LOW);
mesLeds121110.write(X[7],Y[7],LOW);

}