const int BT = 0;
const int LED[7] = {1,2,3,4,5,6,7};
const int MATRIX[10][7] = {
  {1,1,1,1,1,1,0},
  {0,1,1,0,0,0,0},
  {1,1,0,1,1,0,1},
  {1,1,1,1,0,0,1},
  {0,1,1,0,0,1,1},
  {1,0,1,1,0,1,1},
  {1,0,1,1,1,1,1},
  {1,1,1,0,0,0,0},
  {1,1,1,1,1,1,1},
  {1,1,1,1,0,1,1},
};
int ButtonState = 0;
int LastButtonState = 0;
int k=-1;
void setup() {
  for(int i=0;i<7;i++)
    pinMode(LED[i],OUTPUT);
  pinMode[BT,INPUT];
}
void loop() 
{
  ButtonState = digitalRead(BT);
  {
    if(ButtonState != LastButtonState && ButtonState == HIGH)
    {
      k+=1;
      if(k==10)
        k=-1;
      else
      {
        for(int j=0;j<7;j++)
        {
          digitalWrite(LED[j],MATRIX[k][j]);
        }
        delay(250);
        ButtonState = !ButtonState;
      }
    }
    LastButtonState = BT;
  }
}
$abcdeabcde151015202530fghijfghij