Sun SPOT API
Green Release  


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 range, 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, finalize, 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 range,
                   IADCController cntrl)
Creates a new instance of LightSensor

Parameters:
pidx - PinDescriptor that the lightsensor is connected to
range - Range of the mask for the above pin

Sun SPOT API
Green Release  


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