Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Defines | Functions | Variables

hitechnic-pir.h File Reference

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

Detailed Description

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.

Author:
Xander Soldaat (xander_at_botbench.com)
Date:
15 August 2012
Version:
0.1

Definition in file hitechnic-pir.h.