Sun SPOT API
Green Release  


com.sun.spot.sensorboard.capabilities
Interface IServoController

All Known Subinterfaces:
IDemoBoard
All Known Implementing Classes:
EDemoBoard

public interface IServoController

Controller interface of a Servo controller.

Author:
arshan

Method Summary
 IServo bindServo(PinDescriptor pidx)
          return the servo accessor object for the indicated pin
 void setServoPulseWidth(PinDescriptor pidx, int usec)
          set the pulse width for the servo on the indicated pin
 

Method Detail

bindServo

IServo bindServo(PinDescriptor pidx)
return the servo accessor object for the indicated pin

Parameters:
pidx - pin that data wire of servo is attached to
Returns:
accessor object for servo

setServoPulseWidth

void setServoPulseWidth(PinDescriptor pidx,
                        int usec)
set the pulse width for the servo on the indicated pin

Parameters:
pidx - pin that data wire of servo is attached to
usec - length of desired control pulse in microseconds

Sun SPOT API
Green Release  


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