|
Mindsensors LigthSensorArray. More...
#include "common.h"
Go to the source code of this file.
Defines | |
#define | MSLSA_I2C_ADDR 0x14 |
#define | MSLSA_CMD_REG 0x41 |
#define | MSLSA_CALIBRATED 0x42 |
#define | MSLSA_WHITE_LIMIT 0x4A |
#define | MSLSA_BLACK LIMIT 0x52 |
#define | MSLSA_WHITE_CALIB_DATA 0x5A |
#define | MSLSA_BLACK_CALIB_DATA 0x62 |
#define | MSLSA_UNCALIBRATED 0x6A |
#define | MSLSA_CMD_FREQ_US 'A' |
#define | MSLSA_CMD_CALIB_BLACK 'B' |
#define | MSLSA_CMD_POWERDOWN 'D' |
#define | MSLSA_CMD_FREQ_EU 'E' |
#define | MSLSA_CMD_POWERUP 'P' |
#define | MSLSA_CMD_FREQ_UNI 'U' |
#define | MSLDA_CMD_CALIB_WHITE 'W' |
#define | MSLSAwakeUp(X) _MSLSAsendCommand(X, MSLSA_CMD_POWERUP) |
#define | MSLSASleep(X) _MSLSAsendCommand(X, MSLSA_CMD_POWERDOWN) |
#define | MSLSAcalWhite(X) _MSLSAsendCommand(X, MSLDA_CMD_CALIB_WHITE) |
#define | MSLSAcalBlack(X) _MSLSAsendCommand(X, MSLSA_CMD_CALIB_BLACK) |
#define | MSLSAsetEU(X) _MSLSAsendCommand(X, MSLSA_CMD_FREQ_EU) |
#define | MSLSAsetUS(X) _MSLSAsendCommand(X, MSLSA_CMD_FREQ_US) |
#define | MSLSAsetUni(X) _MSLSAsendCommand(X, MSLSA_CMD_FREQ_UNI) |
Functions | |
bool | MSLSAreadSensors (tSensors link, ubyte *values) |
bool | MSLSAreadRawSensors (tSensors link, int *values) |
bool | _MSLSAsendCommand (tSensors link, ubyte cmd) |
Variables | |
tByteArray | MSLSA_I2CRequest |
tByteArray | MSLSA_I2CReply |
Mindsensors LigthSensorArray.
mindsensors-lightsensorarray.h provides an API for the Mindsensors LightSensorArray
Changelog:
License: You may use this code as you wish, provided you give credit where it's due.
THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.
Definition in file mindsensors-lightsensorarray.h.