I was using the eepromreadanything code from playground, and suddenly it stopped working because I transferred the classes on the last tab.
It was saying that the functions were out of scope.
Is this intended or just a glitch?
Do we need to declare classes on the first tabs in order to use them on the next ones?
Hi,
all arduino-code in the tabs is concatenated by a preprocessor to a single file, with the code from the first tab (that gives the name to the sketch) at the top.
If you want to declare anything to be accessible by the rest of the code, put it in the first tab.
Cant you define a prototype of your class in the first tab and have the full class in one of the later tabs?
I thought Id done this at one point but cant find the script at the moment.