To get read access to a variable,write a function/method that returns the variable; look at e.g. Serial.read().
If you want to set a variable, write a function/method that takes a parameter and assign it to the variable; look e.g.at Serial.begin().
To get read access to a variable,write a function/method that returns the variable; look at e.g. Serial.read().
If you want to set a variable, write a function/method that takes a parameter and assign it to the variable; look e.g.at Serial.begin().