Ajuda com arduino por funções

preciso de uma ajuda para incrementar interrupção externa , e uma eeprom para salvar o valor determinado de um potenciômetro abaixo segue o inicio do meu código

const int Potenciometro = 0;
int ValorPoten = 0;
const byte Led1 = 13;
const byte Led2 = 12;
const byte Led3 = 11;
const byte Led4 = 10;
const byte interruptLed = 2;
volatile byte state = LOW;
void setup() {
Serial.begin(9600);
pinMode(Led1, OUTPUT);
pinMode(Led2, OUTPUT);
pinMode(Led3, OUTPUT);
pinMode(Led4, OUTPUT);
pinMode(interruptLed, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(interruptLed), blink, CHANGE);

}

void loop() {
ValorPoten = analogRead(A0);
if (ValorPoten > 0)
{
digitalRead(Led1);
}
digitalWrite(Led1, state);
delay(ValorPoten);
digitalWrite(Led2, state);
delay(ValorPoten);
digitalWrite(Led3, state);
delay(ValorPoten);
digitalWrite(Led4, state);
delay(ValorPoten);
}
void blink() {
state = !state;
}