I was wondering how to return a variable from another tab to the main sketch.
I have calculated the altitude of the Arduino using a barometer and all the code is in a second tab. I call the altimeterLoop() and it calculates the value. But now I want to be able to bring the calculated value back into the main sketch.
How could I do this?