Public Member Functions | |
| def | __init__ |
| def | __calculateLux__ |
Public Member Functions inherited from webiopi.devices.sensor.tslXXXX.TSL2561X | |
| 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 |
Additional Inherited Members | |
Public Attributes inherited from webiopi.devices.sensor.tslXXXX.TSL2561X | |
| 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 inherited from webiopi.devices.sensor.tslXXXX.TSL2561X | |
| 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 142 of file tslXXXX.py.
| def webiopi.devices.sensor.tslXXXX.TSL2561CS.__init__ | ( | self, | |
slave = 0x39, |
|||
time = 402, |
|||
gain = 1 |
|||
| ) |
Definition at line 144 of file tslXXXX.py.
| def webiopi.devices.sensor.tslXXXX.TSL2561CS.__calculateLux__ | ( | self, | |
| channel0_value, | |||
| channel1_value | |||
| ) |
Definition at line 147 of file tslXXXX.py.
References webiopi.devices.sensor.tslXXXX.TSL_LIGHT_X.VAL_INVALID.
Referenced by webiopi.devices.sensor.tslXXXX.TSL2561X.__getLux__(), and webiopi.devices.sensor.vcnl4000.VCNL4000.__getLux__().
1.8.8