Go Down

Topic: serial.avaiable in loop (Read 591 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

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.
The art of getting good answers lies in asking good questions.

karlok

Ah ok. Thank you - That is very useful for me then :)

Go Up