Pages: [1]   Go Down
Author Topic: asynchronous inputs & loops  (Read 1098 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: