LightSensorArray: this class provides PiStorms specific interface for LightSensorArray.
More...
LightSensorArray: this class provides PiStorms specific interface for LightSensorArray.
def MsDevices.LightSensorArray.__init__ |
( |
|
self, |
|
|
|
port, |
|
|
|
address = LSA_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your device.
- Parameters
-
self | The object pointer. |
port | The PiStorms bank. |
address | Address of your device |
def MsDevices.LightSensorArray.Black_Cal |
( |
|
self | ) |
|
def MsDevices.LightSensorArray.command |
( |
|
self, |
|
|
|
cmd |
|
) |
| |
Writes a value to the command register.
- Parameters
-
self | The object pointer. |
cmd | Value to write to the command register. |
def MsDevices.LightSensorArray.ReadRaw_Calibrated |
( |
|
self | ) |
|
Reads the eight(8) calibrated light sensor values of the LightSensorArray.
- Parameters
-
def MsDevices.LightSensorArray.ReadRaw_Uncalibrated |
( |
|
self | ) |
|
Reads the eight(8) uncalibrated light sensor values of the LightSensorArray.
- Parameters
-
def MsDevices.LightSensorArray.Sleep |
( |
|
self | ) |
|
def MsDevices.LightSensorArray.Wakeup |
( |
|
self | ) |
|
def MsDevices.LightSensorArray.White_Cal |
( |
|
self | ) |
|
int MsDevices.LightSensorArray.LSA_CALIBRATED = 0x42 |
|
static |
Calibrated Register.
Will return an 8 byte array
int MsDevices.LightSensorArray.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/MsDevices.py