Pages: [1]   Go Down
Author Topic: serial.avaiable in loop  (Read 320 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Full Member
***
Karma: 1
Posts: 221
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

does Arduino need some time to check
Code:
if (Serial.available()>0)
in  the "loop" ?

How much is this approximately?

Thank you
Logged

using Arduino Uno Rev 3

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49365
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
does Arduino need some time to check...in  the "loop" ?
Yes.

Quote
How much is this approximately?
Not much. All that happens is that the distance between the end of the circular array and the beginning of the circular array is computed. The function call takes longer than the function.
Logged

Germany
Offline Offline
Full Member
***
Karma: 1
Posts: 221
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah ok. Thank you - That is very useful for me then smiley
Logged

using Arduino Uno Rev 3

Pages: [1]   Go Up
Jump to: