All of the Python code on this page is released under the GPL licence. NOTE All of the python code on this site is version 2.7 as that is the current version used on the Raspberry Pi. To be compatible the Windows versions also use 2.7.
How it was Written
The GUI code was written in three parts, the GUI windows used Glade to get the layout and the actual code that does the work is in the files called xxx_events.py. At the time of writing there is no fancy IDE that will do both. This is a bit of a pain as if the layout is changed then the new code generated by Glade has to be modified.
To ease this a bit I have put all of the required modifications in a comment at the bottom of the events file.
The Glade design is in a directory called design, the code that Glade produces is called by the device name and the event code is called device number_events.py
wget http://www.byvac.com/downloads/sws/<name of zip file here>
|sws_1_0.zip||24 September 2013||Python GUI for the sideways stackable and other devices|
|sws_1_3.zip||9 October 2013||Incorporates P011,P015,P017|
|notsmb_1_3.zip||Alternative to I2C smBUS|
|bv4221_i2c.py||1 October 2013||Windows software for this device to emulate notsmb|
|sws_img||18 Oct 2013||This is the wheezy-raspbian image ** 3.8G|
The following are the most up to date classes to drive the various chips or devices. Click on the link to view the contents or download directly into the RPi by copying the link and preceding with wget.
http://www.byvac.com/download/py/sv3A.py # main sv3 class
http://www.byvac.com/download/py/bv4221_i2c.py # this will be needed for Windows I2C when using sv3
http://www.byvac.com/download/py/p011/p011A.py # ADC class
http://www.byvac.com/download/py/p015/p015A.py # GPIO class
http://www.byvac.com/download/py/p017/p017A.py # LCD class
http://www.byvac.com/download/py/bv4242.py # user interface
http://www.byvac.com/download/py/sv3_i2c_util.py # EEPROM utility
These are mostly written in Python but by using PyInstaller they have been packaged into a single exe file for windows and so installation is very easy. In fact they do not require installing, simply place on the local drive and run the exe.
- BvSerail - (Windows) this is now in the ByVac download page, click on link
- BvSerail - (Linux (RPi) zip) this is now in the ByVac download page, click on link
- Or link wget http://www.byvac.com/downloads/BSerial/bvserial_08.zip
- sws - (Windows) Sideways Stackable Software (serial)
- swsi2c - (Windows) Sideways Stackable Software (I2C), this needs a bv4221
- notsmb - (Windows) Pre built windows package includes serial