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

lego-light.h File Reference

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 LScalHigh (tSensors link)
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 ()
void _LSreadCalVals ()

Variables

int lslow [16]
int lshigh [16]
bool legols_calibrated = false

Detailed Description

Lego Light Sensor driver.

lego-light.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 3.59 AND HIGHER.

Author:
Xander Soldaat (xander_at_botbench.com)
Date:
25 November 2009
Version:
0.2

Definition in file lego-light.h.