Go Down

Topic: asynchronous inputs & loops (Read 1 time) previous topic - next topic

atas

Is there a way of performing asynchronous inputs and loops? Or must everything be done serially?
thanks...

johnwasser

It's not clear what you mean by "asynchronous inputs and loops".   Did you want multiple execution threads?  It's not generally done because the RAM/Stack space is so limited.

The problem you are trying to solve might be solvable with multiple state machines.

Serial.read() is non-blocking (return -1 if no character is ready to read).
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy