Figure 5-4
Serial communication with an Arduino
This communication happens regardless of what your sketch is doing. So, even though
you may be merrily flashing LEDs, data will still arrive in the buffer and sit there until you
are ready to read it. You can think of the buffer as being a bit like an e-mail inbox.
The way that you check to see whether you “have mail” is to use the function
Dostları ilə paylaş: