# Simplest way to divide up a project / sketch?

**URL:** <https://forum.arduino.cc/t/simplest-way-to-divide-up-a-project-sketch/1024609>\
**Category:** Programming\
**Created:** [August 22, 2022, 2:22pm UTC](https://forum.arduino.cc/t/simplest-way-to-divide-up-a-project-sketch/1024609 "2022-08-22T14:22:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gfvalvo](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/gfvalvo/32/1013044_2.png) [@gfvalvo](https://forum.arduino.cc/u/gfvalvo)\
**Post date:** [August 22, 2022, 2:34pm UTC](https://forum.arduino.cc/t/simplest-way-to-divide-up-a-project-sketch/1024609/3 "2022-08-22T14:34:47Z")

</div>

You can have one main .ino file and put setup() / loop() there. The rest of the modules would then be done with .h / .cpp files. I avoid the multiple .ino file hack. See my [Reply #5 Here](https://forum.arduino.cc/t/organising-code-for-a-large-scale-modular-project/591328/5) for some basic guidelines.

---

_[View the full topic](https://forum.arduino.cc/t/simplest-way-to-divide-up-a-project-sketch/1024609)._
