Pololu3pi - Sensor Library for the 3pi Robot http://www.pololu.com/docs/0J17/5.g -- This library allows you to easily interface with the five infrared reflectance sensors on the 3pi robot. Note that in order to use this library, you must also include PololuQTRSensors.h in your sketch. You should have something like the following at the top of your sketch: ? 1 2 3 4 #include <Pololu3pi.h> // gives access to sensor interface functions #include <PololuQTRSensors.h> // used by Pololu3pi.h #include <OrangutanMotors.h> // gives access to motor control functions #include <OrangutanBuzzer.h> // gives access to buzzer control functions Unlike the other Orangutan libraries, you must explicitly call the init() method to initialize your Pololu3pi object before using it. All of the methods in this class are static; you should never have more than one instance of a Pololu3pi object in your sketch.
Share this library with your friends on your favorite profile: