com.sun.spot.sensorboard
Interface IDemoBoard
- All Superinterfaces:
- IADCController, IDriver, IGPIOController, ILightSensorController, IServoController, ISwitchController, IToneGeneratorController, ITriColorLEDController
- All Known Implementing Classes:
- EDemoBoard
public interface IDemoBoard
- extends IDriver, IADCController, ISwitchController, ITriColorLEDController, IServoController, IGPIOController, ILightSensorController, IToneGeneratorController
Definition of the generic interface for a SunSPOT demo board.
Brings in the implemented upstream interfaces, as well as defining a few
convienence methods that are specific to the DemoBoards.
Controller interfaces use a model of interaction that allows for behaviours of
the controlled functionality to be modified by implementing the accessor interfaces.
The end user is meant to request on of these accessor objects and then use their
methods to interact with the Controller.
The implementor of the Controller should also be responsible for implementing the
accessor object as these concrete classes are assumed to be tightly bound.
At the same time it is possible to call the methods that actually implement the
low level behaviour in the controller, this is generally disuaded, however there
are circumstances where the user may want to bypass the sanity checking in order
to reduce the latency as much as possible.
- Author:
- arshan
getAccelerometer
IAccelerometer3D getAccelerometer()
- Convenience method to get built in accelerometer.
- Returns:
- accelerometer accessor for the built in accelerometer
getLightSensor
ILightSensor getLightSensor()
- Convenience method to get built in light sensor.
- Returns:
- accelerometer accessor for the built in light sensor
getADCTemperature
ITemperatureInput getADCTemperature()
- Convenience method to get built in Analog to Digital Convertor's temperature sensor.
- Returns:
- accelerometer accessor for the built in ADC's temperature sensor
getLEDs
ITriColorLED[] getLEDs()
- 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()
- 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
Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.