Last active
December 10, 2020 00:40
-
-
Save futureshocked/e717812bc91959e7edd8c16bff0497b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int a; //A variable which is also access by an interrupt service routine | |
| void setup(){ | |
| } | |
| void loop(){ | |
| a = 1; | |
| int b; | |
| b = a + 1; | |
| Serial.println(b); | |
| } | |
| void isr0 () { | |
| a = 5; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment