| Package | funnel.i2c |
| Class | public class I2CDevice |
| Implements | ISysexMessageListener |
| Subclasses | AvagoColorSensor, BlinkM, HMC6343_Advanced, HMC6343_Simple, HMC6352, LIS302DL, LIS3LV02DQ, WiiNunchuck |
| Property | Defined by | ||
|---|---|---|---|
| address : uint [read-only]
| I2CDevice | ||
| command : uint [read-only]
| I2CDevice | ||
| Property | Defined by | ||
|---|---|---|---|
| _delay : uint = 0 [static]
| I2CDevice | ||
| _io : IOModule | I2CDevice | ||
| Method | Defined by | ||
|---|---|---|---|
|
I2CDevice(ioModule:*, slaveAddress:uint, delayUS:uint = 0)
| I2CDevice | ||
|
handleSysex(command:uint, data:Array):void
| I2CDevice | ||
|
update():void
| I2CDevice | ||
| Constant | Defined by | ||
|---|---|---|---|
| I2C_ADDRESS_BASE : uint = 15488 [static]
| I2CDevice | ||
| I2C_CONFIG : uint = 0x78 [static]
| I2CDevice | ||
| I2C_REPLY : uint = 0x77 [static]
| I2CDevice | ||
| I2C_REQUEST : uint = 0x76 [static]
| I2CDevice | ||
| Constant | Defined by | ||
|---|---|---|---|
| READ : uint = 1 [static]
| I2CDevice | ||
| READ_CONTINUOUS : uint = 2 [static]
| I2CDevice | ||
| STOP_READING : uint = 3 [static]
| I2CDevice | ||
| WRITE : uint = 0 [static]
| I2CDevice | ||
| address | property |
address:uint [read-only]Implementation
public function get address():uint
| command | property |
command:uint [read-only]Implementation
public function get command():uint
| _delay | property |
protected static var _delay:uint = 0
| _io | property |
protected var _io:IOModule
| I2CDevice | () | constructor |
public function I2CDevice(ioModule:*, slaveAddress:uint, delayUS:uint = 0)Parameters
ioModule:* |
|
slaveAddress:uint |
|
delayUS:uint (default = 0) |
| handleSysex | () | method |
public function handleSysex(command:uint, data:Array):voidParameters
command:uint |
|
data:Array |
| update | () | method |
public function update():void
| I2C_ADDRESS_BASE | constant |
public static const I2C_ADDRESS_BASE:uint = 15488
| I2C_CONFIG | constant |
public static const I2C_CONFIG:uint = 0x78
| I2C_REPLY | constant |
public static const I2C_REPLY:uint = 0x77
| I2C_REQUEST | constant |
public static const I2C_REQUEST:uint = 0x76
| READ | constant |
protected static const READ:uint = 1
| READ_CONTINUOUS | constant |
protected static const READ_CONTINUOUS:uint = 2
| STOP_READING | constant |
protected static const STOP_READING:uint = 3
| WRITE | constant |
protected static const WRITE:uint = 0