Boa noite estou aprendendo a programar agora

Boa noite !
Estou aprendendo a programar agora estou precisando acionar um sequencial de led acionado por dois botões. Tipo aperta 4 vezes um botão depois uma vez o segundo botão acionar essa sequência de led .
Alguém pode me ajudar !

#define pinbotao 9

#define pinled 13

#define pinbotao 8

#define pinLed 12

void setup() {

// put your setup code here, to run once:

pinMode(13,OUTPUT);

pinMode(12,OUTPUT);

bool pinbotao1pullup();

while(pinMode,13,12,OUTPUT){

digitalWrite(13,HIGH);

delay(250);

digitalWrite(13,LOW);

delay(250);

digitalWrite(12,HIGH);

delay(250);

digitalWrite(12,LOW);

digitalWrite(13,HIGH);

delay(250);

digitalWrite(13,LOW);

delay(250);

digitalWrite(12,HIGH);

delay(250);

digitalWrite(12,LOW);

delay(250);

digitalWrite(13,HIGH);

delay(250);

digitalWrite(13,LOW);

delay(250);

digitalWrite(12,HIGH);

delay(250);

digitalWrite(12,LOW);

digitalWrite(13,HIGH);

delay(250);

digitalWrite(13,LOW);

delay(250);

digitalWrite(12,HIGH);

delay(250);

digitalWrite(12,LOW);

delay(250);

break;

}

delay(2000);

while(pinMode,13,12,OUTPUT){

digitalWrite(13,HIGH);

delay(250);

digitalWrite(13,LOW);

delay(250);

digitalWrite(12,HIGH);

delay(250);

digitalWrite(12,LOW);

delay(250);

digitalWrite(13,HIGH);

delay(250);

digitalWrite(13,LOW);

delay(250);

digitalWrite(12,HIGH);

delay(250);

digitalWrite(12,LOW);

delay(250);

break;

}

while(pinMode,13,12,OUTPUT){

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

break;

}

delay(2000);

while(pinMode,13,12,OUTPUT){

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

digitalWrite(13,HIGH);

digitalWrite(12,HIGH);

delay(150);

digitalWrite(13,LOW);

digitalWrite(12,LOW);

delay(150);

break;

}

delay(2000);

while(pinMode,13,12,OUTPUT){

digitalWrite(13,HIGH);

delay(2000);

digitalWrite(13,LOW);

break;

}

while(pinMode,13,12,OUTPUT){

digitalWrite(13,HIGH);

delay(2000);

digitalWrite(12,HIGH);

delay(350);

digitalWrite(12,LOW);

delay(350);

digitalWrite(12,HIGH);

delay(350);

digitalWrite(12,LOW);

delay(350);

digitalWrite(12,HIGH);

delay(350);

digitalWrite(12,LOW);

delay(350);

digitalWrite(12,HIGH);

delay(350);

digitalWrite(12,LOW);

digitalWrite(13,LOW);

delay(350);

break;

delay(200);

}

while(pinMode,13,12,OUTPUT){

digitalWrite(12,HIGH);

delay(2000);

digitalWrite(12,HIGH);

delay(350);

digitalWrite(13,LOW);

delay(350);

digitalWrite(13,HIGH);

delay(350);

digitalWrite(13,LOW);

delay(350);

digitalWrite(13,HIGH);

delay(350);

digitalWrite(13,LOW);

delay(350);