Pantalla LED con 4051

By THE_HACKER
const int muxSIG = A0;
const int MuxS0 = 5;
const int MuxS1 = 6;
const int MuxS2 = 7;
const int MuxS3 = 4;
const int muxS0 = 8;
const int muxS1 = 9;
const int muxS2 = 10;
const int muxS3 = 11;
int t=10;

void mux(int a,int b, int c)
{
   digitalWrite(muxS0, a);
   digitalWrite(muxS1, b);
   digitalWrite(muxS2, c);
   
}

void Mux(int a,int b, int c)
{
   digitalWrite(MuxS0, a);
   digitalWrite(MuxS1, b);
   digitalWrite(MuxS2, c);
   
}

void setup()
{
   pinMode(muxSIG, OUTPUT);
   pinMode(MuxS0, OUTPUT);
   pinMode(MuxS1, OUTPUT);
   pinMode(MuxS2, OUTPUT);
   pinMode(MuxS3, OUTPUT);
   pinMode(muxS0, OUTPUT);
   pinMode(muxS1, OUTPUT);
   pinMode(muxS2, OUTPUT);
   pinMode(muxS3, OUTPUT);
}

void loop()
{
  for (byte f = 0; f < 2; f++){
     for( int g = 0; g  <  2; g++) { 
       for( int h = 0; h  <  2; h++) { 
          Mux(h,g,f);
         for (byte i = 0; i < 2; i++){
           for( int j = 0; j  <  2; j++) { 
             for( int k = 0; k  <  2; k++) { 
                mux(k,j,i);
                digitalWrite(muxSIG, HIGH);
                delay(t);
                digitalWrite(muxSIG, LOW);
                delay(t);
              }
            }
          }
        }
      }
    }
  }