Hi! I am a newbie programmer, and i have a simple question. I would like to make my project and simplify it by splitting it in external functions.
But i have problem, because this functions does not change the value of variables or write something in serial monitor. Why? There is a simple example:
int variable = 15;
Serial.println("I like green tea.");
variable = 420;
void setup ()
It seems that this "function" don't work. Why? I read some articles, but i couldn't find solution myself. Thanks for help!