|
QTRSensors library
|
#include <stdint.h>Go to the source code of this file.
Classes | |
| class | QTRSensors |
| Represents a QTR sensor array. More... | |
| struct | QTRSensors::CalibrationData |
| Stores sensor calibration data. More... | |
Enumerations | |
| enum | QTRReadMode : uint8_t { QTRReadMode::Off, QTRReadMode::On, QTRReadMode::OnAndOff, QTRReadMode::OddEven, QTRReadMode::OddEvenAndOff, QTRReadMode::Manual } |
| Emitter behavior when taking readings. More... | |
| enum | QTRType : uint8_t { Undefined, RC, Analog } |
| Sensor types. | |
| enum | QTREmitters : uint8_t { All, Odd, Even, None } |
| Emitters selected to turn on or off. | |
Variables | |
| const uint8_t | QTRNoEmitterPin = 255 |
| Represents an undefined emitter control pin. | |
| const uint16_t | QTRRCDefaultTimeout = 2500 |
| Default timeout for RC sensors (in microseconds). | |
| const uint8_t | QTRMaxSensors = 31 |
| The maximum number of sensors supported by an instance of this class. | |
|
strong |
Emitter behavior when taking readings.
Note that emitter control will only work if you specify a valid emitter pin with setEmitterPin(), and the odd/even modes will only work if you are using a second-generation QTR or QTRX sensor with two emitter control pins and you specify both pins with setEmitterPins().
Definition at line 13 of file QTRSensors.h.
1.8.15