|
HiTechnic PIR Sensor Driver. More...
#include "common.h"
Go to the source code of this file.
Defines | |
#define | HTPIR_I2C_ADDR 0x02 |
#define | HTPIR_DEADBAND 0x41 |
#define | HTPIR_READING 0x42 |
#define | HTPIR_DEFAULT_DEADBAND 12 |
Functions | |
bool | HTPIRsetDeadband (tSensors link, int deadband) |
int | HTPIRreadSensor (tSensors link) |
int | HTPIRreadSensor (tMUXSensor muxsensor) |
Variables | |
tConfigParams | HTPIR_config = {HTSMUX_CHAN_I2C, 1, 0x02, 0x42} |
tByteArray | HTPIR_I2CRequest |
tByteArray | HTPIR_I2CReply |
HiTechnic PIR Sensor Driver.
hitechnic-pir.h provides an API for the HiTechnic PIR Sensor.
Changelog:
License: You may use this code as you wish, provided you give credit where its due.
THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.
Definition in file hitechnic-pir.h.