SunSPOT API V2.0


com.sun.spot.sensorboard.io
Interface IScalarInput

All Known Subinterfaces:
ILightSensor, ITemperatureInput
All Known Implementing Classes:
AbstractADT7411RangeInput, ADT7411InternalTemperatureInput, ADT7411RangeInput, BinaryScalar, LightSensor, ScalarInput

public interface IScalarInput

RangeInput provides access to the values returned by an analogue input device. The value range is from zero to the value returned by getRange()

Author:
Syntropy

Method Summary
 int getRange()
           
 int getValue()
           
 

Method Detail

getRange

int getRange()
             throws IOException
Returns:
maximum possible value that could be returned from the input device
Throws:
IOException

getValue

int getValue()
             throws IOException
Returns:
current value of the input
Throws:
IOException

SunSPOT API V2.0


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