#include <Adafruit_NeoPixel.h>
#include <EEPROM.h>
Adafruit_NeoPixel pasik(16, 5, NEO_GRB + NEO_KHZ800);

bool siModry = true;
byte x = 0;
void setup() 
{
  pasik.begin();
  EEPROM.begin();
  Serial.begin(9600);
  pinMode(2, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(2),pre, FALLING );
  x = EEPROM.read(500);
}

void loop() 
{
  
}


void pre()
{
  x++;
  Serial.println(x);
  EEPROM.write(500, x);

}