1228 Views - Created 03/05/2019
Thank you, -TQ
At the moment we do not have a make file for building a .so library.
The easiest way to use the ADC DAC Pi library in your project is to copy the ADCDACPi/ABE_ADCDACPi.cpp and ADCDACPi/ABE_ADCDACPi.h into your project folder and add the following code to the top of your program.
#include "ABE_ADCDACPi.h"using namespace ABElectronics_CPP_Libraries;
When you compile your program include the ABE_ADCDACPi.cpp file in your list of code files. For example with our demo-adcread program you would compile it using g++ with the following command:
g++ demo-adcread.cpp ABE_ADCDACPi.cpp -o demo-adcread
I will look at making our C++ library into a shared library with a makefile.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.