void loop funtion

Hi all,

i want to create a three or more function in arduino 1.6.9 software ,in this software structure have setup,loop only .if icreate the more then one funtion in loop means it continuously run all function.

In C main function run order wise excute once but here continuously runing.

Any one help to control the loop funtion.

Maybe this could help: Demonstration code for several things at the same time.

You may also wish to look at Planning and Implementing a Program

...R

if icreate the more then one funtion in loop means it continuously run all function.

You create functions in the source code editor, you call the functions in your code.

To prevent any function from running every time the loop function iterates then you use an if statement to decide if your function is run.

In C main function run order wise excute once but here continuously runing.

If you want any function to run once only, call it in the setup function. So you treat the setup function as if it were a conventional main function. And the loop function for the bit in the main function that says while(1) { .....

Bit of an "XY problem" here.

You are confusing yourself before all of us.

Sit own and try and explain - in the necessary detail - just what you are trying to do, without referring to "main", "setup" or "loop" or "functions".

Thanks dude for help,

I can do well this loop function in future &giving example also very usefull to understand....

Thanks, karthicinrasu.