Go Down

Topic: Lift with Arduino (Read 1 time) previous topic - next topic

Neorobot

I'm back :)

For the moment all is ok but i need your help about tabs.

I would like to put all my VAR in a different tab than the main tab but there editor says me that it can't find this var.

could you help me?

thank you


AWOL

Quote
I would like to put all my VAR in a different tab than the main tab

You mean you want to put global variables in a tab other than your main sketch?
Why?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Neorobot

#17
May 09, 2013, 04:08 pm Last Edit: May 09, 2013, 04:10 pm by Neorobot Reason: 1
I would like to put all my "#DEFINE " in a tab because i have a lot of them

And if it's not possible for the define, at least all my functions

PeterH

If you want to put #defines and type definitions in a separate file, put them in a header (.h) file and #include that into your sketch file.

If you want to put variable definitions in a separate file, put the definitions in a source (.cpp) file and put the corresponding declarations in a header (.h) file and #include the header file in your sketch file. By convention, the name of the header file should be the same as the source file, just with the extension changed.
I only provide help via the forum - please do not contact me for private consultancy.

Neorobot

Ok, I'll try that !

Thank you PeterH ;)


Go Up