void setup() {
pinMode(13, OUTPUT);//
Serial.begin(115200);
pinMode(2, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), resetD, FALLING);
T=0;T1=0;
}
void resetD(){
D=1000;
if (flag==1){
flag=0;
digitalWrite(13, LOW);
}
else{
flag=1;
digitalWrite(13, HIGH);
}
}