SunSPOT API V3.0


com.sun.spot.sensorboard
Interface IDemoBoard

All Known Implementing Classes:
EDemoBoard

public interface IDemoBoard

Definition of the generic interface for a SunSPOT demo board. Defines methods to access sensors & effectors that are specific to the DemoBoards.


Method Summary
 IAccelerometer3D getAccelerometer()
          Method to get built in accelerometer.
 ITemperatureInput getADCTemperature()
          Method to get internal temperature sensor on the ADC from the edemo board.
 IIOPin[] getIOPins()
          Method to return an array of the builtin bidirectional digital pins.
 ITriColorLED[] getLEDs()
          Method to return an array of all the builtin LEDs.
 ILightSensor getLightSensor()
          Method to get built in light sensor.
 IOutputPin[] getOutputPins()
          Method to return an array of the builtin high current output pins.
 IScalarInput[] getScalarInputs()
          Method to return an array of the builtin analog input pins.
 ISwitch[] getSwitches()
          Method to return an array of the builtin switches.
 

Method Detail

getAccelerometer

IAccelerometer3D getAccelerometer()
Method to get built in accelerometer.

Returns:
accessor for the built in accelerometer

getLightSensor

ILightSensor getLightSensor()
Method to get built in light sensor.

Returns:
accessor for the built in light sensor

getADCTemperature

ITemperatureInput getADCTemperature()
Method to get internal temperature sensor on the ADC from the edemo board.

Returns:
accessor for the built in ADC's temperature sensor

getLEDs

ITriColorLED[] getLEDs()
Method to return an array of all the builtin LEDs. Note that this is only those that are actually built into the edemo board

Returns:
ITriColorLED array of all built in LEDs

getSwitches

ISwitch[] getSwitches()
Method to return an array of the builtin switches. Note this is only the switches that are built into the edemo board

Returns:
ISwitch array of all built in switches

getIOPins

IIOPin[] getIOPins()
Method to return an array of the builtin bidirectional digital pins. Note this is only the bidirectional digital pins, D0-D4, that are built into the edemo board

Returns:
IIOPin array of all built in bidirectional digital pins

getOutputPins

IOutputPin[] getOutputPins()
Method to return an array of the builtin high current output pins. Note this is only the high current output pins, H0-H3, that are built into the edemo board

Returns:
IOutputPin array of all built in high current output pins

getScalarInputs

IScalarInput[] getScalarInputs()
Method to return an array of the builtin analog input pins. Note this is only the analog input pins, A0-A5, that are built into the edemo board

Returns:
IScalarInput array of all built in analog input pins

SunSPOT API V3.0


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