This is the command line to control the Sixteen RELAYS 8-Layer Stackable HAT for Raspberry Pi.
Don't forget to enable I2C communication:
~$ sudo raspi-config
~$ git clone https://github.com/SequentMicrosystems/16relind-rpi.git
~$ cd 16relind-rpi/
~/16relind-rpi$ sudo make install
Now you can access all the functions of the relays board through the command "16relind". Use -h option for help:
~$ 16relind -h
If you clone the repository any update can be made with the following commands:
~$ cd 16relind-rpi/
~/16relind-rpi$ git pull
~/16relind-rpi$ sudo make install