Pages: 1 [2]   Go Down
Author Topic: Lift with Arduino  (Read 1265 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm back smiley

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

Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25770
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: May 09, 2013, 09:10:43 am by Neorobot » Logged

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12549
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, I'll try that !

Thank you PeterH smiley-wink

Logged

Pages: 1 [2]   Go Up
Jump to: