Packagefunnel.i2c
Classpublic class BlinkM
InheritanceBlinkM Inheritance I2CDevice

This is the class to express BlinkM devices



Public Properties
 PropertyDefined by
 Inheritedaddress : uint
I2CDevice
 Inheritedcommand : uint
I2CDevice
Protected Properties
 PropertyDefined by
 Inherited_delay : uint = 0
[static]
I2CDevice
 Inherited_io : IOModule
I2CDevice
Public Methods
 MethodDefined by
  
BlinkM(ioModule:*, address:uint = 0x09)
BlinkM
  
fadeToHSBColor(color:Array, speed:int = -1):void
BlinkM
  
fadeToRandomHSBColor(color:Array, speed:int = -1):void
BlinkM
  
fadeToRandomRGBColor(color:Array, speed:int = -1):void
BlinkM
  
fadeToRGBColor(color:Array, speed:int = -1):void
BlinkM
  
goToRGBColorNow(color:Array):void
BlinkM
  
handleSysex(command:uint, data:Array):void
BlinkM
  
playLightScript(scriptId:uint, theNumberOfRepeats:uint = 1, lineNumber:uint = 0):void
BlinkM
  
setFadeSpeed(speed:uint):void
BlinkM
  
stopScript():void
BlinkM
 Inherited
update():void
I2CDevice
Public Constants
 ConstantDefined by
 InheritedI2C_ADDRESS_BASE : uint = 15488
[static]
I2CDevice
 InheritedI2C_CONFIG : uint = 0x78
[static]
I2CDevice
 InheritedI2C_REPLY : uint = 0x77
[static]
I2CDevice
 InheritedI2C_REQUEST : uint = 0x76
[static]
I2CDevice
Protected Constants
 ConstantDefined by
 InheritedREAD : uint = 1
[static]
I2CDevice
 InheritedREAD_CONTINUOUS : uint = 2
[static]
I2CDevice
 InheritedSTOP_READING : uint = 3
[static]
I2CDevice
 InheritedWRITE : uint = 0
[static]
I2CDevice
Constructor detail
BlinkM()constructor
public function BlinkM(ioModule:*, address:uint = 0x09)Parameters
ioModule:*
 
address:uint (default = 0x09)
Method detail
fadeToHSBColor()method
public function fadeToHSBColor(color:Array, speed:int = -1):voidParameters
color:Array
 
speed:int (default = -1)
fadeToRandomHSBColor()method 
public function fadeToRandomHSBColor(color:Array, speed:int = -1):voidParameters
color:Array
 
speed:int (default = -1)
fadeToRandomRGBColor()method 
public function fadeToRandomRGBColor(color:Array, speed:int = -1):voidParameters
color:Array
 
speed:int (default = -1)
fadeToRGBColor()method 
public function fadeToRGBColor(color:Array, speed:int = -1):voidParameters
color:Array
 
speed:int (default = -1)
goToRGBColorNow()method 
public function goToRGBColorNow(color:Array):voidParameters
color:Array
handleSysex()method 
public override function handleSysex(command:uint, data:Array):voidParameters
command:uint
 
data:Array
playLightScript()method 
public function playLightScript(scriptId:uint, theNumberOfRepeats:uint = 1, lineNumber:uint = 0):voidParameters
scriptId:uint
 
theNumberOfRepeats:uint (default = 1)
 
lineNumber:uint (default = 0)
setFadeSpeed()method 
public function setFadeSpeed(speed:uint):voidParameters
speed:uint
stopScript()method 
public function stopScript():void