# how to run  a code once in the void loop?

**URL:** <https://forum.arduino.cc/t/how-to-run-a-code-once-in-the-void-loop/427842>\
**Category:** Programming\
**Created:** [December 30, 2016, 3:45pm UTC](https://forum.arduino.cc/t/how-to-run-a-code-once-in-the-void-loop/427842 "2016-12-30T15:45:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 30, 2016, 5:53pm UTC](https://forum.arduino.cc/t/how-to-run-a-code-once-in-the-void-loop/427842/10 "2016-12-30T17:53:53Z")

</div>

See reply #1.  
Or put the print in setup, where it will be executed just once per reset.

---

_[View the full topic](https://forum.arduino.cc/t/how-to-run-a-code-once-in-the-void-loop/427842)._
