Saving Space with Simple Serial Communication

The Arduino's Serial library is very convenient and does a lot of different, useful things. In Chapter 2, you successfully ported the classic C program “Hello, world!” to the Arduino and replaced printf() with Serial.println(). Sometimes, however, you only need to send a few simple messages or report a reading or two. In these situations, you may want to save some program space by replacing Serial with the bare minimum of code necessary to send or receive data.

images Note Baud rate or bits per second (bps)? Technically, these terms don't mean the same thing, although they're often used interchangeably. ...

Get Arduino Internals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.