{"id":1504,"date":"2018-01-07T15:37:42","date_gmt":"2018-01-07T15:37:42","guid":{"rendered":"http:\/\/easycoding.tn\/?page_id=1504"},"modified":"2018-01-07T15:40:41","modified_gmt":"2018-01-07T15:40:41","slug":"interrupts","status":"publish","type":"page","link":"http:\/\/easycoding.tn\/index.php\/nodemcu\/tuniot-documentation\/interrupts\/","title":{"rendered":"Interrupts"},"content":{"rendered":"<ul>\n<li><strong>Attach interrupt<\/strong>:<br \/>\n<img loading=\"lazy\" class=\"size-medium alignleft\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/01\/Attach-interrupt.jpg\" width=\"343\" height=\"129\" \/>This bloc is used for creating external interrupt. It will execute the blocs whenever an event happen on the selected pin according to a mode.<br \/>\nThe mode could be:<br \/>\n&#8211; LOW to trigger the interrupt whenever the pin is low,<br \/>\n&#8211; CHANGE to trigger the interrupt whenever the pin changes value<br \/>\n&#8211; RISING to trigger when the pin goes from low to high,<br \/>\n&#8211; FALLING for when the pin goes from high to low.<br \/>\n&#8211; HIGH to trigger the interrupt whenever the pin is high.<\/li>\n<\/ul>\n<div class=\"paragraph\">\n<ul>\n<li><strong><img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/01\/Detach.jpg\" width=\"117\" height=\"39\" \/>Detach interrupt<\/strong>:<br \/>\nTurns off the given interrupt.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong><img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/01\/Interrupt.jpg\" width=\"94\" height=\"37\" \/>Interrupt<\/strong>:<br \/>\nRe-enables interrupts (after they\u2019ve been disabled by the bloc no interrupt. Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical sections of code.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong><img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/01\/NoInterrupt.jpg\" width=\"108\" height=\"35\" \/>No Interrupt<\/strong>:<br \/>\nDisables interrupts (you can re-enable them with <code>interrupts()<\/code>). Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical sections of code.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Attach interrupt: This bloc is used for creating external interrupt. It will execute the blocs whenever an event happen on&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1007,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1504"}],"collection":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/comments?post=1504"}],"version-history":[{"count":1,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1504\/revisions"}],"predecessor-version":[{"id":1505,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1504\/revisions\/1505"}],"up":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1007"}],"wp:attachment":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/media?parent=1504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}