Go Down

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


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy