Package | org.iotashan.nabaztagAPI |
Class | public class NabaztagLEDCommand |
Inheritance | NabaztagLEDCommand ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | command : String
String that determines what type of command this is.
| NabaztagChoreographyCommand | |
selectedColor : uint
Color to make the LED.
| NabaztagLEDCommand | ||
![]() | startTime : Number
Starting time of this command, in "beats" specified by the tempo.
| NabaztagChoreographyCommand | |
targetLED : Number
The target LED for this command.
| NabaztagLEDCommand |
Method | Defined 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 |
Constant | Defined 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 |
selectedColor | property |
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
targetLED | property |
targetLED:Number
[read-write]The target LED for this command.
Implementation public function get targetLED():Number
public function set targetLED(value:Number):void
NabaztagLEDCommand | () | constructor |
public function NabaztagLEDCommand(startTime:Number, targetLED:Number = 0, selectedColor:uint = 0x000000)
Constructor method.
ParametersstartTime:Number |
|
targetLED:Number (default = 0 )
|
|
selectedColor:uint (default = 0x000000 )
|
getCommand | () | method |
public override function getCommand():String
Returns this command in the proper URL format for use with the Nabaztag API.
ReturnsString |
BOTTOM_LED | constant |
public const BOTTOM_LED:Number = 0
HIGH_LED | constant |
public const HIGH_LED:Number = 4
LED_COMMAND | constant |
public const LED_COMMAND:String = "led"
The string value to be used for the command
LEFT_LED | constant |
public const LEFT_LED:Number = 1
MIDDLE_LED | constant |
public const MIDDLE_LED:Number = 2
RIGHT_LED | constant |
public const RIGHT_LED:Number = 3