Hello!
I'm writing an Arduino program where the program goes through a list, and calls a function with the current list object as a parameter.
I'm wondering if there's any type of function that can get called, but then the program continue without waiting for the function to finish. So the function cal get called multiple times and finish on it's own. Any ideas?
Thanks in forehand
Can you give an example, and not just some vague hand-waving?
You can find multitasking (sort of) libraries for Arduino on the net. Here is one... never tried it though
There is no parallel processing on the Arduino.
You will have to break your functions up in small pieces and call those functions multiple times till they indicate that they're done.
void loop()
{
function1(); // execute a small piece of function1
function2(); // execute a small piece of function2
}
See e.g. Demonstration code for several things at the same time