//The simple use of interrupts
//it interferres in a current task that is on going
void setup() {
Serial.begin(9600);
pinMode(2, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), my_isr, FALLING);
}
void loop() {
//There is no code in this loop
Serial.println("Hello from loop!");
delay(1000);
}
void my_isr(){
Serial.println("Hello from Interrupts");
delay(1000);
}