Skip to content

Instantly share code, notes, and snippets.

@futureshocked
Last active December 10, 2020 00:40
Show Gist options
  • Save futureshocked/e717812bc91959e7edd8c16bff0497b4 to your computer and use it in GitHub Desktop.
Save futureshocked/e717812bc91959e7edd8c16bff0497b4 to your computer and use it in GitHub Desktop.
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