Python Libraries to work with Raspberry Pi expansion boards from https://www.abelectronics.co.uk
Important: This library supports Python 3 only. If you require a version compatible with Python 2, it is available in our archive repository at https://github.com/abelectronicsuk/ABElectronics_Python2_Libraries.
To install the library, you will need the Python3 build and install packages. To install them, run the following command.
sudo apt update
sudo apt install python3-build python3-installer git
Download the ABElectronics_Python_Libraries to your Raspberry Pi:
git clone https://github.com/abelectronicsuk/ABElectronics_Python_Libraries.git
To install the python library, navigate into the ABElectronics_Python_Libraries folder and run:
python3 -m build
sudo python3 -m installer dist/*.whl
To use a specific part of our Python library in your project without installing the entire library, you can copy the necessary class file into your project's directory. For example, to use the IO Pi Plus, copy the IOPi.py file from the IOPi directory to where your project files are located. After doing this, you can use the class in your program by adding an import statement at the beginning of your Python code. This allows you to directly use the class's functionality in your project.
from IOPi import IOPi
To configure the SPI bus, follow our SPI and Python on Raspberry Pi OS tutorial.
To configure the I2C bus, follow our Enabling I2C on the Raspberry Pi tutorial.
This directory contains ADC DAC Pi Python Library with ADC read and DAC write demos to use with the ADC DAC Pi
This directory contains ADC Pi Python Library and demos to use with the ADC Pi
This directory contains ADC Differential Pi Python Library and demos to use with the ADC Differential Pi
This library is also compatible with the Delta-Sigma Pi
This directory contains IO Pi Python Library and demos to use with the Expander Pi
This directory contains the I2C Switch Python library and demo to use with the 4-channel I2C switch
This directory contains IO Pi Python Library and demos to use with the IO Pi Plus
This directory contains IO Zero 32 Python Library and demos to use with the IO Zero 32
This directory contains RTC Pi Python Library and demos to use with the RTC Pi
This directory contains ServoPi Python Library and demos to use with the Servo Pi
A previous version of the Python libraries compatible with Python 2.7 can be found at https://github.com/abelectronicsuk/ABElectronics_Python2_Libraries