PPS58: this class provides functions for PPS58 from mindsensors.com for read and write operations.
More...
PPS58: this class provides functions for PPS58 from mindsensors.com for read and write operations.
def mindsensors.PPS58.__init__ |
( |
|
self, |
|
|
|
pps58_address = PPS58_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your PPS58.
- Parameters
-
self | The object pointer. |
pps58_address | Address of your PPS58. |
def mindsensors.PPS58.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.PPS58.get_absolute |
( |
|
self | ) |
|
Reads the absolute pressure of the PPS58.
- Parameters
-
def mindsensors.PPS58.get_gauge |
( |
|
self | ) |
|
Reads the gauge, or relative, pressure of the PPS58.
- Parameters
-
def mindsensors.PPS58.get_raw |
( |
|
self | ) |
|
Reads the raw pressure value of the PPS58.
- Parameters
-
def mindsensors.PPS58.get_reference |
( |
|
self | ) |
|
Reads the reference pressure of the PPS58.
- Parameters
-
def mindsensors.PPS58.get_unit |
( |
|
self | ) |
|
Reads a value assigned to the unit of pressure cureently in use on the PPS58.
- Parameters
-
def mindsensors.PPS58.set_reference |
( |
|
self | ) |
|
Sets the reference pressure to the current absolute pressure value.
- Parameters
-
def mindsensors.PPS58.set_unit_kpascal |
( |
|
self | ) |
|
Sets the unit of measure to kilopascal.
- Parameters
-
def mindsensors.PPS58.set_unit_mbar |
( |
|
self | ) |
|
Sets the unit of measure to millibar.
- Parameters
-
def mindsensors.PPS58.set_unit_PSI |
( |
|
self | ) |
|
Sets the unit of measure to pounds per square inch.
- Parameters
-
int mindsensors.PPS58.ABS = 0x43 |
|
static |
Absolute Pressure Register.
Will return an integer value
int mindsensors.PPS58.GAUGE = 0x45 |
|
static |
Gauge (Relative) Pressure Register.
Will return an integer value
int mindsensors.PPS58.RAW = 0x53 |
|
static |
Raw Pressure Register.
Will return a long integer value
int mindsensors.PPS58.REF = 0x47 |
|
static |
Reference Pressure Register.
Will return an integer value
int mindsensors.PPS58.UNIT = 0x42 |
|
static |
Unit Register.
Will Return a byte value
The documentation for this class was generated from the following file:
- PiStorms/sys/mindsensors.py