#include"button.h"
button btn(5);
void setup(){
  Serial.begin(9600);
  //pinMode(2, INPUT_PULLUP);
  pinMode(LED_BUILTIN, OUTPUT);
}
int c;bool b;
void loop(){
  bool x=btn.check(3,1);
  if(x){b=!b;delay(50);}
  digitalWrite(LED_BUILTIN,b);
}