Packagefunnel.i2c
Classpublic class AvagoColorSensor
InheritanceAvagoColorSensor Inheritance I2CDevice

This is the class to express Avago ADJD-S371-QR999 color sensor modules



Public Properties
 PropertyDefined by
 Inheritedaddress : uint
I2CDevice
  blue : Number = 0
AvagoColorSensor
  clear : Number = 0
AvagoColorSensor
 Inheritedcommand : uint
I2CDevice
  green : Number = 0
AvagoColorSensor
  red : Number = 0
AvagoColorSensor
Protected Properties
 PropertyDefined by
 Inherited_delay : uint = 0
[static]
I2CDevice
 Inherited_io : IOModule
I2CDevice
Public Methods
 MethodDefined by
  
AvagoColorSensor(ioModule:*, address:uint = 0x74)
AvagoColorSensor
  
handleSysex(command:uint, data:Array):void
AvagoColorSensor
  
update():void
AvagoColorSensor
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
Property detail
blueproperty
public var blue:Number = 0
clearproperty 
public var clear:Number = 0
greenproperty 
public var green:Number = 0
redproperty 
public var red:Number = 0
Constructor detail
AvagoColorSensor()constructor
public function AvagoColorSensor(ioModule:*, address:uint = 0x74)Parameters
ioModule:*
 
address:uint (default = 0x74)
Method detail
handleSysex()method
public override function handleSysex(command:uint, data:Array):voidParameters
command:uint
 
data:Array
update()method 
public override function update():void