This is the command to control Building Automation Stackable Card for Raspberry Pi
Don't forget to enable I2C communication:
~$ sudo raspi-config
~$ git clone https://github.com/SequentMicrosystems/megabas-rpi.git
~$ cd megabas-rpi/
~/megabas-rpi$ sudo make install
Now you can access all the functions of the BAS board through the command "megabas". Use -h option for help:
~$ megabas -h
If you clone the repository any update can be made with the following commands:
~$ cd megabas-rpi/
~/megabas-rpi$ git pull
~/megabas-rpi$ sudo make install
The board can act as Modbus RTU slave device, checkout modbus instructions