SunSPOT API V2.0


com.sun.spot.sensorboard.peripheral
Class LightSensor

java.lang.Object
  extended by com.sun.spot.sensorboard.io.ScalarInput
      extended by com.sun.spot.sensorboard.peripheral.LightSensor
All Implemented Interfaces:
IScalarInput, ILightSensor

public class LightSensor
extends ScalarInput
implements ILightSensor

simple extension of ScalarInput

Author:
arshan

Constructor Summary
LightSensor(PinDescriptor pidx, int r, IADCController cntrl)
          Creates a new instance of LightSensor
 
Method Summary
 
Methods inherited from class com.sun.spot.sensorboard.io.ScalarInput
getRange, getValue, getVoltage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.spot.sensorboard.io.IScalarInput
getRange, getValue
 

Constructor Detail

LightSensor

public LightSensor(PinDescriptor pidx,
                   int r,
                   IADCController cntrl)
Creates a new instance of LightSensor

Parameters:
pidx - PinDescriptor that the lightsensor is connected to
r - Range of the mask for the above pin
cntrl - the ADC controller to use

SunSPOT API V2.0


Copyright © 2007 Sun Microsystems, Inc. All Rights Reserved.