def getPressure(self, oversampling=OVERSAMPLE_0):
    assert self.OVERSAMPLE_0 <= oversampling <= self.OVERSAMPLE_3, \
        "unsupported oversample value"

    temp, b5 = self.getTemp(return_b5_coefficient=True)
        
    offset = self.CMD_PRESSURE_OSS_INC * oversampling
    cmd = self.CMD_PRESSURE + offset
    self.writeRegister(self.REG_CTRL_MEAS, cmd) 
    bbio.delay(self.PRESSURE_CONVERSION_TIMES[oversampling])
    msb, lsb, xlsb = self.readRegister(self.REG_OUT_MSB, 3)
    val = ((msb<<16) | (lsb<<8) | xlsb) >> (8-oversampling)
    
    # Conversions are straight out of the datasheet
    b6 = b5-4000
    x1 = (self.cal_B2 * (b6*b6 / 4096)) / 2048
    x2 = self.cal_AC2 * b6 / 2048
    x3 = x1+x2
    b3 = (((self.cal_AC1*4+x3) << oversampling) + 2) / 4
    x1 = self.cal_AC3 * b6 / 8192
    x2 = (self.cal_B1 * (b6*b6 / 4096)) / 65536
    x3 = ((x1 + x2) + 2) / 4
    b4 = self.cal_AC4 * (x3 + 32768) / 32768
    b7 = (val - b3) * (50000 >> oversampling)
    if (b7 < 1<<31): p = (b7 * 2) / b4
    else: p = (b7 / b4) * 2
    x1 = (p / 256)**2
    x1 = (x1 * 3038) / 65536
    x2 = (-7357 * p) / 65536
    p += (x1 + x2 + 3791) / 16
    return p
Returns the current pressure in Pascals. The optional parameter 
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/BMP183/BMP183.py/BMP183.getPressure