|
Lego Light Sensor driver. More...
#include "common.h"
Go to the source code of this file.
Defines | |
#define | LEGOLSDAT "legols.dat" |
Functions | |
int | LSvalRaw (tSensors link) |
int | LSvalNorm (tSensors link) |
void | LScalLow (tSensors link) |
void | LScalLow (int lowval) |
void | LScalHigh (tSensors link) |
void | LScalHigh (int highval) |
void | LSsetActive (tSensors link) |
void | LSsetInactive (tSensors link) |
int | LSvalNorm (tMUXSensor muxsensor) |
void | LScalLow (tMUXSensor muxsensor) |
int | LSvalRaw (tMUXSensor muxsensor) |
void | LScalHigh (tMUXSensor muxsensor) |
void | LSsetActive (tMUXSensor muxsensor) |
void | LSsetInactive (tMUXSensor muxsensor) |
void | _LScheckSensor (tSensors link) |
void | _LSwriteCalVals (int lowval, int highval) |
void | _LSreadCalVals (int &lowval, int &highval) |
Variables | |
int | lslow = 0 |
int | lshigh = 1023 |
bool | legols_calibrated = false |
Lego Light Sensor driver.
LEGOLS-driver.h provides an API for the Lego Light 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 2.00 AND HIGHER.
Definition in file LEGOLS-driver.h.