Sun SPOT API
Green Release  


com.sun.spot.sensorboard.capabilities
Interface ILightSensorController

All Known Subinterfaces:
IDemoBoard
All Known Implementing Classes:
EDemoBoard

public interface ILightSensorController

Controller interface of a LightSensor controller.

Author:
arshan

Method Summary
 ILightSensor bindLightSensor(PinDescriptor pidx)
          register lightsensor and return accessor object.
 int getLightSensorValue(PinDescriptor pidx)
          Ask controller to return current value of lightsensor
 

Method Detail

bindLightSensor

ILightSensor bindLightSensor(PinDescriptor pidx)
register lightsensor and return accessor object.

Parameters:
pidx - pin that lightsensor is attached to, this must be a Scalar input
Returns:
accessor object

getLightSensorValue

int getLightSensorValue(PinDescriptor pidx)
Ask controller to return current value of lightsensor

Parameters:
pidx - Scalar input pin that light sensor is attached to
Returns:
current value of pin

Sun SPOT API
Green Release  


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