|
HiTechnic IR Receiver Sensor driver. More...
#include "common.h"
Go to the source code of this file.
Defines | |
#define | HTIRR_I2C_ADDR 0x02 |
#define | HTIRR_OFFSET 0x42 |
#define | HTIRR_MOTOR_1A 0x00 |
#define | HTIRR_MOTOR_1B 0x01 |
#define | HTIRR_MOTOR_2A 0x02 |
#define | HTIRR_MOTOR_2B 0x03 |
#define | HTIRR_MOTOR_3A 0x04 |
#define | HTIRR_MOTOR_3B 0x05 |
#define | HTIRR_MOTOR_4A 0x06 |
#define | HTIRR_MOTOR_4B 0x07 |
#define | MOTOR_BRAKE -128 |
Functions | |
bool | HTIRRreadChannel (tSensors link, byte channel, sbyte &motA, sbyte &motB) |
bool | HTIRRreadAllChannels (tSensors link, tsByteArray &motorSpeeds) |
Variables | |
tByteArray | HTIRR_I2CRequest |
tByteArray | HTIRR_I2CReply |
HiTechnic IR Receiver Sensor driver.
HTIRR2-driver.h provides an API for the IR Receiver Sensor driver.
Changelog:
Credits:
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-irrecv.h.