(eight bits) of memory to
represent a dash or a dot, which could be represented in a bit.
However, you can easily justify this approach by saying that the total number of bytes is
still only about 90 and we do have 2K to play with. Equally importantly, it makes the code
easy to understand.
Numbers use the same approach:
Globals and Setup
You need to define a couple of global variables: one for the delay period for a dot, and one
to define which pin the LED is attached to:
The
Dostları ilə paylaş: