user33150: Can i create a function inside of void setup() 
to recall in loop() function

user313: Defining a function within a function is not supported in C or C++. If it were supported in a way consistent with the rest of the language, the inner function would be local to the outer function, just as local variables are, so not callable or even visible from outside the outer function.
Your loop() function (or any other function) could, however, call the setup() function as long as you want to execute setup() again in its entirety. That means that any initialization you perform in setup() would be repeated each time you call it.

user4143: No. You do not create functions within functions.
You can create a function, and then call it both from setup() and loop() if you so wish.

33150: <p>Can i create a function inside of void setup() 
to recall in loop() function</p>
 313: <p>Defining a function within a function is not supported in C or C++. If it were supported in a way consistent with the rest of the language, the inner function would be local to the outer function, just as local variables are, so not callable or even visible from outside the outer function.</p>

<p>Your loop() function (or any other function) could, however, call the setup() function as long as you want to execute setup() again in its entirety. That means that any initialization you perform in setup() would be repeated each time you call it.</p>
 4143: <p>No. You do not create functions within functions.</p>

<p>You can create a function, and then call it both from <code>setup()</code> and <code>loop()</code> if you so wish.</p>
