-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concatenate ino files before building #5
Conversation
As describe in the Adruino Build process (https://www.arduino.cc/en/Hacking/BuildProcess) ino files are concateneted before building. So variable defined in a .ino are available in other one
Hello, the Arduino build process is a little more complicated : cpp and ino files are concateneted (cpp first and ino file last) and you have to add the current directory to the INCLUDE . |
The page linked in previous comment (https://www.arduino.cc/en/Hacking/BuildProcess) said in section Multi-file sketches: |
The ino files are the one without extension |
You're right sorry. but you need to add sketch's directory to the include path(for sketch' include files). |
You are right ! I was planning another PR for that. I will do it here. 2016-06-21 14:58 GMT+02:00 thunder notifications@github.com:
|
Btw, you did a great job with this project ! |
Your PRs were manualy integrated (because i have made lots of change one hour ago). I have to add some test sketch now. Thank you. |
Cool, I was looking for spiffs size too ! |
Another problem : we have to concatenate ino files in the right order : the main ino file at the end no? |
I specially try to put the main one at the top. 2016-06-22 10:45 GMT+02:00 thunder notifications@github.com:
|
Yes, but it's not enough as we don't have the tool to create function definitions... so i think that concatenate is not enough. |
You are right. In my sketches I make sure that all my function have 2016-06-22 11:40 GMT+02:00 thunder notifications@github.com:
|
We may have something here : 2016-06-22 12:03 GMT+02:00 Mathieu Maret mathieu.maret@gmail.com:
|
As describe in the Adruino Build process
(https://www.arduino.cc/en/Hacking/BuildProcess)
ino files are concateneted before building.
So variable defined in a .ino are available in other one