Programming Arduino Getting Started with Sketches by Simon Monk

Programming Arduino Getting Started with Sketches by Simon Monk

Author:Simon Monk [Monk, Simon]
Language: eng
Format: epub, mobi, pdf
Publisher: McGraw-Hill Education
Published: 2011-11-28T22:00:00+00:00


Table 5-2 Morse Code Letters

Data

You are going to build this example a step at a time, starting with the data structure that you are going to use to represent the codes.

It is important to understand that there is no one solution to this problem. Different programmers will come up with different ways to solve it. So, it is a mistake to think to yourself, “I would never have come up with that.” Well, no, quite possibly you would come up with something different and better. Everyone thinks in different ways, and this solution happens to be the one that first popped into the author’s head.

Representing the data is all about finding a way of expressing Table 5-2 in C. In fact, you are going to split the data into two tables: one for the letters, and one for the numbers. The data structure for the letters is as follows:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.