Go Down

Topic: serial.avaiable in loop (Read 353 times) previous topic - next topic

karlok

Hello,

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

How much is this approximately?

Thank you
using Arduino Uno Rev 3

PaulS

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.

karlok

Ah ok. Thank you - That is very useful for me then :)
using Arduino Uno Rev 3

Go Up