Class Hierarchy   Compound List   File List   Compound Members   File Members  

LightSensor Class Reference

LEGO light sensor class. More...

Class diagram for LightSensor:

Sensor

List of all members.

Public Members


Detailed Description

LEGO light sensor class.


Member Function Documentation

LightSensor::LightSensor (unsigned * addr = s1, int active = 1)

Creates a light sensor at the specified address.

Parameters:
addr - One of Sensor::s1, Sensor::s2, Sensor::s3 or Sensor::battery.
active - Flag to activate sensor alimentation. With alimentation, the sensor measures reflectivity, without alimentation it samples ambient light level.

The documentation for this class was generated from the following files:
legOS-0.1.7 is released under Mozilla Public License. Original code © 1998-1999 by Markus L. Noga.