OE - Pi
1.1
|
BMP180: this class provides functions for temperature, pressure, and altitude of the BMP180 IC for read and write operations. More...
Public Member Functions | |
def | __init__ |
Initialize the class with the i2c address of the BMP180. More... | |
def | readCalibrationData |
Reads the calibration data from the BMP180 IC. More... | |
def | showCalibrationData |
Prints the calibration data for debugging purposes. More... | |
def | readRawTemp |
Reads raw temperature value. More... | |
def | readRawPressure |
Reads raw pressure value. More... | |
def | readTemperature |
Reads the temperature value in degrees Celcius calculated from the raw temperature value. More... | |
def | readPressure |
Reads the pressure value in pascal calculated from the raw pressure value. More... | |
def | readAltitude |
Reads the altitude value in meters calculated from the pressure value. More... | |
Public Member Functions inherited from OpenElectrons_i2c.OpenElectrons_i2c | |
def | __init__ |
Initialize the class with the i2c address of your device. More... | |
def | errMsg |
Prints an error message if a read error is detected. More... | |
def | writeByte |
Write a byte to your i2c device at a given location. More... | |
def | readByte |
Read an unsigned byte from your i2c device at a given location. More... | |
def | simpleWriteByte |
Write a byte to your i2c device at a given location. More... | |
def | simpleReadByte |
Read an unsigned byte from your i2c device at a given location. More... | |
def | readByteSigned |
Read a signed byte from your i2c device at a given location. More... | |
def | readArray |
Read a byte array from your i2c device starting at a given location. More... | |
def | writeArray |
Write a byte array from your i2c device starting at a given location. More... | |
def | readString |
Read a string from your i2c device starting at a given location. More... | |
def | readIntegerBE |
Read an unsigned 16 bit integer from your i2c device from a given location. More... | |
def | readInteger |
Read an unsigned 16 bit integer from your i2c device from a given location. More... | |
def | readIntegerSignedBE |
Read a signed 16 bit integer from your i2c device from a given location. More... | |
def | readIntegerSigned |
Read a signed 16 bit integer from your i2c device from a given location. More... | |
def | readLongBE |
Read an unsigned 32bit integer from your i2c device from a given location. More... | |
def | readLong |
Read an unsigned 32bit integer from your i2c device from a given location. More... | |
def | readLongSignedBE |
Read a signed 32bit integer from your i2c device from a given location. More... | |
def | readLongSigned |
Read a signed 32bit integer from your i2c device from a given location. More... | |
def | GetFirmwareVersion |
Read the firmware version of the i2c device. More... | |
def | GetVendorName |
Read the vendor name of the i2c device. More... | |
def | GetDeviceId |
Read the i2c device id. More... | |
Public Attributes | |
mode | |
Public Attributes inherited from OpenElectrons_i2c.OpenElectrons_i2c | |
address | |
bus | |
Static Public Attributes | |
tuple | PRESSURE_ADDRESS = (0xEE) |
Additional Inherited Members | |
Static Public Member Functions inherited from OpenElectrons_i2c.OpenElectrons_i2c | |
def | pi_rev |
def | which_bus |
BMP180: this class provides functions for temperature, pressure, and altitude of the BMP180 IC for read and write operations.
def OpenElectrons_BMP180.BMP180.__init__ | ( | self, | |
pressure_address = PRESSURE_ADDRESS |
|||
) |
Initialize the class with the i2c address of the BMP180.
self | The object pointer. |
i2c_address | Address of your accelerometer. |
def OpenElectrons_BMP180.BMP180.readAltitude | ( | self, | |
seaLevelPressure = 101325 |
|||
) |
Reads the altitude value in meters calculated from the pressure value.
self | The object pointer. |
seaLevelPressure | The sea level pressure. |
def OpenElectrons_BMP180.BMP180.readCalibrationData | ( | self | ) |
Reads the calibration data from the BMP180 IC.
self | The object pointer. |
def OpenElectrons_BMP180.BMP180.readPressure | ( | self | ) |
Reads the pressure value in pascal calculated from the raw pressure value.
self | The object pointer. |
def OpenElectrons_BMP180.BMP180.readRawPressure | ( | self | ) |
Reads raw pressure value.
self | The object pointer. |
def OpenElectrons_BMP180.BMP180.readRawTemp | ( | self | ) |
Reads raw temperature value.
self | The object pointer. |
def OpenElectrons_BMP180.BMP180.readTemperature | ( | self | ) |
Reads the temperature value in degrees Celcius calculated from the raw temperature value.
self | The object pointer. |
def OpenElectrons_BMP180.BMP180.showCalibrationData | ( | self | ) |
Prints the calibration data for debugging purposes.
self | The object pointer. |