The source code of the test project is here. If you’re setting up the environment from scratch, please follow the official oF documentation for the RPi here. Note that we stick to the recommended armv6 version for backwards compatibility with the original Model B, as well as Pi Zero support! Also make sure the wiringPi library is installed in the system.

If you’re on the pre-loaded SD image, the openFrameworks test app for the PiShield is located at:

~/dev/openFrameworks/apps/myApps/emptyICubeXRPiOFExample/

And simply going into that directory, you can type make run to execute the test.

This app simply polls the 8 channels of A2D input for a bit, and then tries to talk to an orient3d sensor connected on the digital I2C ports. It should provide enough to get you started in incorporating sensors into your oF application. Looking forward to seeing your creative projects using sensors and openFrameworks!