5 #include <QTRSensors.h>
61 init(pins, numSensors, emitterPin);
71 init(pins,
sizeof(pins), 2000, emitterPin);
84 init(pins,
sizeof(pins), 2000, emitterPin);
97 void init(uint8_t * pins, uint8_t numSensors,
98 uint16_t timeout = 2000, uint8_t emitterPin =
SENSOR_LEDON)
100 QTRSensorsRC::init(pins, numSensors, timeout, emitterPin);
static const uint8_t SENSOR_DOWN3
The pin number for standard pin that is used to read line sensor 3, the middle sensor.
static const uint8_t SENSOR_DOWN4
The pin number for the standard pin that is used to read line sensor 4, the sensor second from the ri...
static const uint8_t SENSOR_DOWN5
The pin number for the standard pin that is used to read line sensor 5, the right-most sensor.
static const uint8_t SENSOR_LEDON
The pin number for the standard pin that is used to enable or disable the IR emitters of the line sen...
static const uint8_t SENSOR_DOWN1
The pin number for the standard pin that is used to read line sensor 1, the left-most sensor.
static const uint8_t SENSOR_DOWN2
The pin number for the standard pin that is used to read line sensor 2, the sensor second from the le...
Gets readings from the five down-facing line sensors on the front sensor array.
void initFiveSensors(uint8_t emitterPin=SENSOR_LEDON)
Configures this object to use all five line sensors.
Zumo32U4LineSensors(uint8_t *pins, uint8_t numSensors, uint8_t emitterPin=SENSOR_LEDON)
Constructor that takes pin arguments.
void initThreeSensors(uint8_t emitterPin=SENSOR_LEDON)
Configures this object to use just three line sensors.
void init(uint8_t *pins, uint8_t numSensors, uint16_t timeout=2000, uint8_t emitterPin=SENSOR_LEDON)
Configures this object to use a custom set of pins.
Zumo32U4LineSensors()
Minimal constructor.