Chapter 12. Wired Communication
So far, we’ve controlled things with an Espruino board, but apart from the USB connection to the PC we haven’t actually communicated with any other devices.
Suppose we wanted to communicate with another Espruino board, turn a television on and off, or even connect to the internet. We need some way of turning our data (at the basic level, made up out of a series of bits) into something that we can transmit, and then we need a way to reconstruct it.
Perhaps the most obvious example of transmitting data is Morse code. A series of short and long beeps is used to transmit characters of text over the radio.
For example, if we use . for a short beep, and - for a long beep, the codes for various characters are:
A .- ... |
Get Making Things Smart 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.