12th Anniversary Sale 12% Off in July & August with the voucher code "SUMMER12" *excludes trade customers
Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

C++ Library and Demos

Software Library and Demo Code for the C++ Programming Language

Our C++ libraries are designed to work seamlessly with the expansion boards available from AB Electronics UK, providing a robust and efficient way to interface with your Raspberry Pi. These libraries offer a comprehensive suite of functions, making it easier than ever to develop and prototype your projects.

To download the C++ libraries to your Raspberry Pi, open your terminal and enter the following command:

git clone https://github.com/abelectronicsuk/ABElectronics_CPP_Libraries.git

 

The C++ library supports the following expansion boards.

ADC DAC Pi

The ADC DAC Pi library allows you to read from ADC inputs and write to DAC outputs on the ADC-DAC Pi Zero board. This functionality is useful for applications requiring precise analogue signal processing, such as sensor data collection or analogue control systems.

ADC Differential Pi

Use the ADC Differential Pi library to read input values from the ADC Differential Pi board. This is particularly useful for projects needing differential analogue input measurement, offering improved accuracy and noise reduction for sensor readings.

ADC Pi

With the ADC Pi library, you can easily read input values from the ADC Pi expansion board. This board supports multiple ADC channels, making it ideal for interfacing with various analogue sensors and devices, thereby extending the monitoring and control capabilities of your Raspberry Pi.

Expander Pi

The Expander Pi library provides control over all functionalities of the Expander Pi board. This versatile board includes analogue inputs and outputs, digital I/O, and a real-time clock. The library simplifies the process of managing these features, thus expanding your Raspberry Pi’s capabilities.

I2C Switch

The I2C Switch library allows you to manage the functions of the 4-channel I2C switch. This switch allows you to connect multiple I2C devices with identical addresses to a single Raspberry Pi by dynamically switching between them. The library facilitates easy programmatic management and switching of your I2C devices.

IO Pi

Utilise the IO Pi library to read and write to the IO Pi Plus, IO Pi Zero, and IO Pi boards. These boards add extra digital input and output pins to your Raspberry Pi, which is particularly useful for various control and monitoring tasks that require additional GPIO pins.

IO Zero 32

The IO Zero 32 library supports reading from and writing to the IO Zero 32 board. This board offers 32 additional digital I/O pins, providing ample capacity for your projects. The library makes it straightforward to use these extra pins efficiently.

RTC Pi

The RTC Pi library controls the real-time clock and internal SRAM on the RTC Pi board. This is essential for projects requiring precise timekeeping, such as data logging or time-sensitive applications. The library includes functions to set and retrieve the time and manage the onboard SRAM.

Servo Pi

The Servo Pi library enables control over the PWM outputs on the Servo PWM Pi board. This is useful for driving servos and other PWM-controlled devices, making it perfect for robotics, automation, and other projects needing accurate motor control.

 

If you require support or have any questions regarding our C++ libraries and demo code, please do not hesitate to contact us. We have a support forum where you can post your questions and engage with other users. Additionally, you can use the contact form on our website to reach out directly. Our support team is dedicated to helping you get the most out of your Raspberry Pi expansion boards. We welcome your feedback and are committed to continually enhancing our products and services to better meet your needs.


Was this article helpful? Yes No

Please tell us how we can improve this article:

Submit

Related Expansion Boards

Order a ADC Differential Pi Photo of ADC Differential Pi
ADC Differential Pi

8 Channel 18-bit Differential Analogue to Digital converter for the Raspberry Pi

£17.99 Ex VAT: £14.99
Order a ADC Pi Photo of ADC Pi
ADC Pi

8 Channel 17-bit Single-Ended Analogue to Digital converter for the Raspberry Pi

£19.19 Ex VAT: £15.99
Order a ADC-DAC Pi Zero Photo of ADC-DAC Pi Zero
ADC-DAC Pi Zero

2 Channel ADC and 2 Channel DAC for the Raspberry Pi

£14.99 Ex VAT: £12.49
Order a Expander Pi Photo of Expander Pi
Expander Pi

Analogue, Digital and RTC Expansion Interface for the Raspberry Pi

£27.59 Ex VAT: £22.99
Order a I2C Switch Photo of I2C Switch
I2C Switch

4 channel I2C Switch for the Raspberry Pi

£10.79 Ex VAT: £8.99
Order a IO Pi Plus Photo of IO Pi Plus
IO Pi Plus

32 channel MCP23017 digital I/O expander for the Raspberry Pi

£14.39 Ex VAT: £11.99
Order a IO Zero 32 Photo of IO Zero 32
IO Zero 32

32 channel digital I/O expander for the Raspberry Pi

£13.19 Ex VAT: £10.99
Order a RTC Pi Photo of RTC Pi
RTC Pi

Real-time clock for the Raspberry Pi

£11.39 Ex VAT: £9.49
Order a Servo PWM Pi Photo of Servo PWM Pi
Servo PWM Pi

16-channel, 12-bit PWM controller for driving LEDs and RC servos

£11.39 Ex VAT: £9.49

Related Articles

Python Library and Demos
Software Library and Demo Code for the Python Programming Language
C Library and Demos
Software Library and Demo Code for the C Programming Language
C++ Library and Demos
Software Library and Demo Code for the C++ Programming Language
MicroPython Library and Demos
MicroPython Library and Demo Samples
Arduino Library and Demos
Demo code for the Arduino Platform
.Net Core Libraries
Use .Net Core with your Raspberry Pi Project
Windows 10 IOT Library & Demos
Windows 10 IOT Library & Demo Code
Node JS Library and Demos
Node JS Library and Demo Samples