Packageorg.iotashan.nabaztagAPI
Classpublic class NabaztagLEDCommand
InheritanceNabaztagLEDCommand Inheritance NabaztagChoreographyCommand

A choreography command for controlling the LED lights.



Public Properties
 PropertyDefined by
 Inheritedcommand : String
String that determines what type of command this is.
NabaztagChoreographyCommand
  selectedColor : uint
Color to make the LED.
NabaztagLEDCommand
 InheritedstartTime : Number
Starting time of this command, in "beats" specified by the tempo.
NabaztagChoreographyCommand
  targetLED : Number
The target LED for this command.
NabaztagLEDCommand
Public Methods
 MethodDefined by
  
NabaztagLEDCommand(startTime:Number, targetLED:Number = 0, selectedColor:uint = 0x000000)
Constructor method.
NabaztagLEDCommand
  
getCommand():String
Returns this command in the proper URL format for use with the Nabaztag API.
NabaztagLEDCommand
Public Constants
 ConstantDefined by
  BOTTOM_LED : Number = 0
NabaztagLEDCommand
  HIGH_LED : Number = 4
NabaztagLEDCommand
  LED_COMMAND : String = "led"
The string value to be used for the command
NabaztagLEDCommand
  LEFT_LED : Number = 1
NabaztagLEDCommand
  MIDDLE_LED : Number = 2
NabaztagLEDCommand
  RIGHT_LED : Number = 3
NabaztagLEDCommand
Property detail
selectedColorproperty
selectedColor:uint  [read-write]

Color to make the LED. You will want to use bright colors so they show up. To turn off a LED, use the color black.

Implementation
    public function get selectedColor():uint
    public function set selectedColor(value:uint):void
targetLEDproperty 
targetLED:Number  [read-write]

The target LED for this command.

Implementation
    public function get targetLED():Number
    public function set targetLED(value:Number):void
Constructor detail
NabaztagLEDCommand()constructor
public function NabaztagLEDCommand(startTime:Number, targetLED:Number = 0, selectedColor:uint = 0x000000)

Constructor method.

Parameters
startTime:Number
 
targetLED:Number (default = 0)
 
selectedColor:uint (default = 0x000000)
Method detail
getCommand()method
public override function getCommand():String

Returns this command in the proper URL format for use with the Nabaztag API.

Returns
String
Constant detail
BOTTOM_LEDconstant
public const BOTTOM_LED:Number = 0
HIGH_LEDconstant 
public const HIGH_LED:Number = 4
LED_COMMANDconstant 
public const LED_COMMAND:String = "led"

The string value to be used for the command

LEFT_LEDconstant 
public const LEFT_LED:Number = 1
MIDDLE_LEDconstant 
public const MIDDLE_LED:Number = 2
RIGHT_LEDconstant 
public const RIGHT_LED:Number = 3