this post was submitted on 10 Sep 2023
4 points (100.0% liked)
Arduino
6 readers
1 users here now
All about Arduino boards and programming.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I found a StackExchange answer for this. TLDR: The Arduino IDE combines all .ino files in the folder into one file before compiling it
https://arduino.stackexchange.com/a/60659
very interesting: so if you need a particular order of the loop, you controll it via filenames.. Curious to try this out. Thanks!
I don't quite understand what you mean by "controlling the loop parts." If you mean you have a giant loop() and want to split it into parts, i suggest you first extract these parts into seperate functions, which you can then move into other files. This allows you to keep your main file and it's loop intact, and have descriptively named functions.