An SWI-Prolog wrapper for the WiringPi C library
(Under Development)
- http://www.swi-prolog.org/pldoc/man?section=foreign
- http://www.swi-prolog.org/pldoc/man?section=foreignlink
- http://www.swi-prolog.org/pldoc/man?section=shlib
- http://www.swi-prolog.org/pldoc/man?section=foreigninclude
- http://www.swi-prolog.org/pldoc/man?section=foreignxmp
#Compiling
$ gcc -I/usr/lib/swi-prolog/include -fpic -c corefunc.c
$ gcc -shared -o corefunc.so corefunc.o -Wall -lwiringPi
Run swipl as root