LSA: this class provides functions for LightSensorArray from mindsensors.com for read and write operations.
More...
LSA: this class provides functions for LightSensorArray from mindsensors.com for read and write operations.
def mindsensors.LSA.__init__ |
( |
|
self, |
|
|
|
lsa_address = LSA_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your LightSensorArray.
- Parameters
-
self | The object pointer. |
lsa_address | Address of your LightSensorArray. |
def mindsensors.LSA.Black_Cal |
( |
|
self | ) |
|
Calibrates the black value for the LightSensorArray.
- Parameters
-
def mindsensors.LSA.command |
( |
|
self, |
|
|
|
cmd |
|
) |
| |
Writes a value to the command register.
- Parameters
-
self | The object pointer. |
cmd | Value to write to the command register. |
def mindsensors.LSA.ReadRaw_Calibrated |
( |
|
self | ) |
|
Reads the eight(8) calibrated light sensor values of the LightSensorArray.
- Parameters
-
def mindsensors.LSA.ReadRaw_Uncalibrated |
( |
|
self | ) |
|
Reads the eight(8) uncalibrated light sensor values of the LightSensorArray.
- Parameters
-
def mindsensors.LSA.Sleep |
( |
|
self | ) |
|
Puts to sleep, or turns off the LEDs of the LightSensorArray.
- Parameters
-
def mindsensors.LSA.Wakeup |
( |
|
self | ) |
|
Wakes up or turns on the LEDs of the LightSensorArray.
- Parameters
-
def mindsensors.LSA.White_Cal |
( |
|
self | ) |
|
Calibrates the white value for the LightSensorArray.
- Parameters
-
int mindsensors.LSA.LSA_CALIBRATED = 0x42 |
|
static |
Calibrated Register.
Will return an 8 byte array
int mindsensors.LSA.LSA_UNCALIBRATED = 0x6A |
|
static |
Uncalibrated Register.
Will return an 8 byte array
The documentation for this class was generated from the following file:
- PiStorms/sys/mindsensors.py