Occasionally things get so messy that a tidy up simply can no longer be avoided. So it is true with writing code and having all the code located in one tab makes it difficult to find bits that need tweeking. The Arduino IDE allows code to be split over many different tabs, or columns, as below:

The trick to do this is to use the 'extern' function to make integers etc global and not just restricted to the code in the tab. And here is an animation to show how it is used:

The full set of code files are updated regularly on GitHub HERE.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.