Where to find the wiringPi.h file?

when following the guide at http://www.dexterindustries.com/BrickPi/program-it/c/ I seem to be missing a file name wiringPi.h ?


root@brickpi:~/BrickPi_C/Sensor Examples# gcc -o program LEGO - ColorSensor test.c -lrt -lm -L/usr/local/lib -lwiringPi

LEGO - ColorSensor test.c:17:22: fatal error: wiringPi.h: No such file or directory compilation terminated.

Where is this file ? Or how do I properly install this ?

cheers,
paul

Hey Paul,

You now have two options to install the wiringPi. Both we recommend cloning the github repo at

First, you can find it in the directory “Setup%20Files” under BrickPi. There’s a wiringPi.zip file that has wiringPi in it.

Also, you can do a thorough setup for the BrickPi with our install script “Setup%20Files/install.sh”. You need to change directory to this the Setup Files directory, then run

chmod 777 install.sh
./install.sh

This will walk you through the installation and setup for the BrickPi.

Thanks! Works like a charm with color sensor and touch sensor.
Rest will be for later…

paul