Public Member Functions | |
| def | __init__ |
| def | __getLux__ |
| def | setGain |
| def | getGain |
| def | __setTime__ |
| def | __getTime__ |
Public Member Functions inherited from webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X | |
| def | __init__ |
| def | __str__ |
| def | wake |
| def | __wake__ |
| def | sleep |
| def | __sleep__ |
| def | setTime |
| def | getTime |
Public Member Functions inherited from webiopi.devices.i2c.I2C | |
| def | __init__ |
| def | __str__ |
| def | readRegister |
| def | readRegisters |
| def | writeRegister |
| def | writeRegisters |
Public Member Functions inherited from webiopi.devices.bus.Bus | |
| def | __init__ |
| def | open |
| def | close |
| def | read |
| def | readBytes |
| def | readByte |
| def | write |
| def | writeBytes |
| def | writeByte |
Public Member Functions inherited from webiopi.devices.sensor.Luminosity | |
| def | __family__ |
| def | __getLux__ |
| def | getLux |
Public Attributes | |
| gain_multiplier | |
| time_multiplier | |
Public Attributes inherited from webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X | |
| name | |
Public Attributes inherited from webiopi.devices.i2c.I2C | |
| channel | |
| slave | |
Public Attributes inherited from webiopi.devices.bus.Bus | |
| busName | |
| device | |
| flag | |
| fd | |
Static Public Attributes | |
| int | VAL_TIME_402_MS = 0x02 |
| int | VAL_TIME_101_MS = 0x01 |
| int | VAL_TIME_14_MS = 0x00 |
| int | REG_CHANNEL_0_LOW = 0x0C |
| int | REG_CHANNEL_1_LOW = 0x0E |
| int | MASK_GAIN = 0x10 |
| int | MASK_TIME = 0x03 |
Static Public Attributes inherited from webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X | |
| int | VAL_COMMAND = 0x80 |
| int | REG_CONTROL = 0x00 |
| int | REG_CONFIG = 0x01 |
| int | VAL_PWON = 0x03 |
| int | VAL_PWOFF = 0x00 |
| int | VAL_INVALID = -1 |
Definition at line 66 of file tslXXXX.py.
| def webiopi.devices.sensor.tslXXXX.TSL2561X.__init__ | ( | self, | |
| slave, | |||
| time, | |||
| gain, | |||
name = "TSL2561X" |
|||
| ) |
Definition at line 77 of file tslXXXX.py.
References webiopi.devices.sensor.tslXXXX.TSL2561X.setGain(), and webiopi.utils.types.toint().
| def webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__ | ( | self | ) |
Definition at line 81 of file tslXXXX.py.
References webiopi.devices.sensor.tslXXXX.TSL2561CS.__calculateLux__(), webiopi.devices.sensor.vcnl4000.VCNL4000.__calculateLux__(), webiopi.devices.sensor.tslXXXX.TSL2561T.__calculateLux__(), webiopi.devices.sensor.tslXXXX.TSL2561X.gain_multiplier, webiopi.devices.i2c.I2C.readRegisters(), webiopi.devices.sensor.tslXXXX.TSL2561X.REG_CHANNEL_0_LOW, webiopi.devices.sensor.tslXXXX.TSL2561X.REG_CHANNEL_1_LOW, and webiopi.devices.sensor.tslXXXX.TSL2561X.time_multiplier.
| def webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__ | ( | self | ) |
Definition at line 129 of file tslXXXX.py.
References webiopi.devices.sensor.tslXXXX.TSL2561X.MASK_TIME, webiopi.devices.i2c.I2C.readRegister(), webiopi.devices.digital.mcp23XXX.MCP23SXX.readRegister(), webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X.REG_CONFIG, webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_101_MS, webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_14_MS, and webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_402_MS.
Referenced by webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X.getTime().
| def webiopi.devices.sensor.tslXXXX.TSL2561X.__setTime__ | ( | self, | |
| time | |||
| ) |
Definition at line 111 of file tslXXXX.py.
References webiopi.devices.sensor.tslXXXX.TSL2561X.VAL_TIME_402_MS.
Referenced by webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X.setTime().
| def webiopi.devices.sensor.tslXXXX.TSL2561X.getGain | ( | self | ) |
| def webiopi.devices.sensor.tslXXXX.TSL2561X.setGain | ( | self, | |
| gain | |||
| ) |
Definition at line 89 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__init__().
| webiopi.devices.sensor.tslXXXX.TSL2561X.gain_multiplier |
Definition at line 92 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__().
|
static |
Definition at line 74 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.getGain().
|
static |
Definition at line 75 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__().
|
static |
Definition at line 71 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__().
|
static |
Definition at line 72 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__().
| webiopi.devices.sensor.tslXXXX.TSL2561X.time_multiplier |
Definition at line 116 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__(), and webiopi.devices.sensor.tslXXXX.TSL4531.__getLux__().
|
static |
Definition at line 68 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__().
|
static |
Definition at line 69 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__().
|
static |
Definition at line 67 of file tslXXXX.py.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getTime__(), and webiopi.devices.sensor.tslXXXX.TSL2561X.__setTime__().
1.8.8