Check out the CPPToPigpio usage guide for more details on how you can make use of this library!
Acknowledgements
This code was developed by:
- Andrew Renuart: andrew.renuart@gatech.edu
- Jason Calvert: jcalvert8@gatech.edu
- Julian Rosker: julian.rosker@gatech.edu
- Charith Dassanayake: karvin@gatech.edu
install.sh@11:a207231e549a, 2017-12-13 (annotated)
- 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?
User | Revision | Line number | New 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" |