{"action":"closed","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/1086","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/1086/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/1086/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/1086/events","html_url":"https://github.com/esp8266/Arduino/issues/1086","id":119151674,"number":1086,"title":"ISR is executing only once.","user":{"login":"pbecchi","id":8531122,"avatar_url":"https://avatars.githubusercontent.com/u/8531122?v=3","gravatar_id":"","url":"https://api.github.com/users/pbecchi","html_url":"https://github.com/pbecchi","followers_url":"https://api.github.com/users/pbecchi/followers","following_url":"https://api.github.com/users/pbecchi/following{/other_user}","gists_url":"https://api.github.com/users/pbecchi/gists{/gist_id}","starred_url":"https://api.github.com/users/pbecchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbecchi/subscriptions","organizations_url":"https://api.github.com/users/pbecchi/orgs","repos_url":"https://api.github.com/users/pbecchi/repos","events_url":"https://api.github.com/users/pbecchi/events{/privacy}","received_events_url":"https://api.github.com/users/pbecchi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-27T08:30:18Z","updated_at":"2015-11-27T09:33:22Z","closed_at":"2015-11-27T09:33:22Z","body":"To test interrupts on GPIO lines I am running this very simple sketch:\r\n\r\nvoid setup() {\r\n\r\n  Serial.begin(9600);\r\n  pinMode(13, INPUT);\r\n  digitalWrite(13,HIGH);\r\n  attachInterrupt(13, count0,CHANGE);\r\n\r\nSerial.println(\"Start...\");\r\n}\r\n\r\nvolatile int incr=0,intern=0,flash=0;\r\nint counto=0;\r\n///////////////////////////////////////////////////////////\r\n\r\n\r\nvoid count0()\r\n{\r\n  flash++;\r\n }\r\n\r\n\r\n\r\nvoid loop() {\r\n if(flash>counto) {\r\n     counto=flash;\r\n     Serial.print('.');\r\n /*\r\n    digitalWrite(FPIN, HIGH);   // set the LED on\r\n    delay(50);              // wait for a second\r\n    digitalWrite(FPIN, LOW); \r\n    delay(50);*/\r\n}\r\n}\r\n\r\nThe interrupt routine it is executed only first time the interrupt is triggered!"}}