// a19, b21, c17, d5, e18, f22, g23
int pines[]={19,21,17,5,18,22,23};
int del=500;

void setup() {
  pinMode(17, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(18, OUTPUT);
  pinMode(19, OUTPUT);
  pinMode(21, OUTPUT);
  pinMode(22, OUTPUT);
  pinMode(23, OUTPUT);
}

void loop() {
  uno();delay(del);
  dos();delay(del);
  tres();delay(del);
  cuatro();delay(del);
  cinco();delay(del);
  seis();delay(del);
  siete();delay(del);
  ocho();delay(del);
  nueve();delay(del);
  cero();delay(del);
}
void uno(){
  // uno 0110000
  digitalWrite(pines[0], 0); //a19
  digitalWrite(pines[1], 1); //b21
  digitalWrite(pines[2], 1); //c17
  digitalWrite(pines[3], 0); //d5
  digitalWrite(pines[4], 0); //e18
  digitalWrite(pines[5], 0); //f22
  digitalWrite(pines[6], 0); //g23
}
void dos(){
  // dos 1101101
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 0);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 1);
  digitalWrite(pines[5], 0);
  digitalWrite(pines[6], 1);
}
void tres(){
  // tres 1111001
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 0);
  digitalWrite(pines[5], 0);
  digitalWrite(pines[6], 1);
}
void cuatro(){
  // cuatro 0110011
  digitalWrite(pines[0], 0);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 0);
  digitalWrite(pines[4], 0);
  digitalWrite(pines[5], 1);
  digitalWrite(pines[6], 1);
}
void cinco(){
  // cinco 1011011
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 0);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 0);
  digitalWrite(pines[5], 1);
  digitalWrite(pines[6], 1);
}
void seis(){
  // seis 1011111
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 0);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 1);
  digitalWrite(pines[5], 1);
  digitalWrite(pines[6], 1);
}
void siete(){
  // siete 1110000
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 0);
  digitalWrite(pines[4], 0);
  digitalWrite(pines[5], 0);
  digitalWrite(pines[6], 0);
}
void ocho(){
  // ocho 11111111
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 1);
  digitalWrite(pines[5], 1);
  digitalWrite(pines[6], 1);
}
void nueve(){
  // nueve 1111011
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 0);
  digitalWrite(pines[5], 1);
  digitalWrite(pines[6], 1);
}
void cero(){
  // cero 1111110
  digitalWrite(pines[0], 1);
  digitalWrite(pines[1], 1);
  digitalWrite(pines[2], 1);
  digitalWrite(pines[3], 1);
  digitalWrite(pines[4], 1);
  digitalWrite(pines[5], 1);
  digitalWrite(pines[6], 0);
}