cw2hex is a C program that takes text input and turns it into
hexadecimal-encoded Morse code.  This can be useful for making an
amateur radio beacon or an automated CQ keyer.
The default output is an Intel Hex file, that can be used to
burn an EPROM or EEPROM chip with an appropriate programmer.

if you start cw2hex with the -c option, the output file will
be a comma separated value file (csv) that can be imported
as an array of numbers into a C program such as an Arduino sketch.
The last value in the csv file is not part of the array data,
it is the array dimension.

CWBeacon101.ino is an Arduino sketch that can be used for an automated beacon.
Run cw2hex -c on your desired message, then take the output from the resulting
cw.csv file and use it to replace the example msgtable data, remove the
trailing comma.  The last number in the csv file is the length, replace
the msgtable dimension value with that.

Normally, only the lower 4 bits of each byte are used and the upper 4 bits
are 0, if you use the -s command line option, the output is shifted to the
upper 4 bits of each byte and the lower 4 bits are 0.  This works with both
hex file and csv file output.

For more information, see this article:
http://www.solorb.com/elect/hamcirc/beacon/index.html

