A LocoIO programmer, based loosely on Hans DeLoof's LocoIO/HDL programmer.
Deprecated/No longer supported as of JMRI version 3: Please use DecoderPro with a Public Domain/DIY decoder (2015/2020)

JMRI jmrix.loconet.locoio - a LocoNet programmer for LocoIO
and HDL based LocoNet IO boards using the John Jabour or Hans Deloof
firmware.

Written by John Plocher during the last part of 2006 and the beginning of 2007.

This version ONLY deals with SV1 & SV2 (address/subaddress) and
SV3-SV50 (primary mode, value1 and value2 for ports 1-16.
In particular, it does NOT address SV0 (board level configuration),
SV51-SV98 (alternate Opcodes) or SV101-124 (servo config).

Usage model:

    Enter a LocoIO address and sub-address.
    Click the <probe> button.
    If a LocoIO is found at that address, its firmware version is displayed
    (the Monitor LocoNet window will show all the LocoIOs that responded
    to the probe request if you need to refresh your memory)

    <set address>
    If you wish to change the address of a LocoIO board, you MUST
    ensure that it is the ONLY LocoIO-based board connected to the
    LocoNet, as the address is set via a broadcast message.  A popup
    will remind you of this.  If you ignore it, then ALL of the LocoIOs
    on your LocoNet will be reprogrammed with the same new address.

    <read all> reads all the CV values from the LocoIO specified.

    <write all> writes them all out to that LocoIO board.

    The individual read/write buttons do the same, but for only one
    port at a time.

    <capture> extracts the address out of the next turnout or
    occupancy sensor LocoNet message it sees and uses it as the
    address of the selected port.

----

Improvements included in 2020 Public Domain - DeLoof LocoIO decoder definition:

-   UI to configure the various SV0 states.

-   write a "change address" routine that takes both the
    old and new addresses and does the change without using a
    broadcast address.

-   write a set of config data out to a text file in the
    form used by Hans's programmer, and reread it back when
    requested.

-   clear up function of tool compared to the Public Domain HDL
    basic decoder definition available in DecoderPro.
