this post was submitted on 10 Sep 2023
1 points (100.0% liked)

Arduino

804 readers
19 users here now

All about Arduino boards and programming.

founded 4 years ago
MODERATORS
 

Hi all, intuitively it seems to make sense to split different parts of code to different files, so it is easier to navigate and read.

For example to have separate files for servos, controllers and web which are included in the main code, and only variables are passed through.

And if this is a good practice, how do you deal with separation of setup and loop parts? I have not found reaources on this, so thinking to ask the community.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here