Loading...
Pages: [1]   Go Down
Author Topic: asynchronous inputs & loops  (Read 465 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: 98
Posts: 6389
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

Pages: [1]   Go Up
Print
 
Jump to: