Check out the CPPToPigpio usage guide for more details on how you can make use of this library!

Acknowledgements

This code was developed by:

Committer:
Charith Dassanayake
Date:
Wed Dec 13 09:06:30 2017 -0500
Revision:
11:a207231e549a
Parent:
10:b4abae132d44
description change

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Charith Dassanayake 0:2c622e9f39d8 1 set -e
Charith Dassanayake 0:2c622e9f39d8 2 cd CPPToPigpioInstallDir
Charith Dassanayake 0:2c622e9f39d8 3 g++ -std=c++11 -Wall -Wextra -Werror -pthread -o CPPToPigpio.o -c dummyInstall.cc -lpigpio -lrt
Charith Dassanayake 0:2c622e9f39d8 4 ar rcs libCPPToPigpio.a CPPToPigpio.o
Charith Dassanayake 0:2c622e9f39d8 5 sudo mv libCPPToPigpio.a /usr/local/lib/
Charith Dassanayake 0:2c622e9f39d8 6 #don't forget I2C
Charith Dassanayake 0:2c622e9f39d8 7 sudo cp CPPToPigpio.h DigitalOut.h DigitalIn.h BusOut.h BusIn.h PwmOut.h I2C.h /usr/local/include/
Charith Dassanayake 0:2c622e9f39d8 8 cd -
Charith Dassanayake 0:2c622e9f39d8 9 echo "Install successful! #include <CPPToPigpio.h> and run the following to compile:"
Charith Dassanayake 0:2c622e9f39d8 10 echo "g++ -std=c++11 -Wall -Wextra -Werror -pthread -o <output_filename> <your_main_cc> -lpigpio -lrt -lCPPToPigpio"