Created
June 10, 2016 04:42
-
-
Save futureshocked/4797583d5253ff86485e743378430024 to your computer and use it in GitHub Desktop.
This file contains 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 local_variable = 0; | |
void setup(){ | |
Serial.begin(9600); | |
} | |
void loop (){ | |
a_function(); | |
Serial.print("In loop: "); | |
Serial.println(local_variable); | |
delay(1000); | |
} | |
void a_function(){ | |
Serial.print("In a_function: "); | |
Serial.println(local_variable); | |
local_variable++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment