Bases: object
Configure the interrupt pin.
| Parameters: |
|
|---|---|
| Returns: | none |
| Parameters: | none – |
|---|---|
| Returns: | none |
Returns the number of meters above sea level.
| Parameters: | none – |
|---|---|
| Returns: | altitude as a float |
Return a bool value indicating wheather the sensor is in Active or Standby mode.
| Parameters: | none – |
|---|---|
| Returns: | Mode - 1 if in Active mode, 0 otherwise |
Sets the ovsersampling rate.
| Parameters: | sampleRate – sampleRate is from 0 to 7 |
|---|---|
| Returns: | none |
Returns the number of meters above sea level.
| Parameters: | none – |
|---|---|
| Returns: | altitude as a float |
Reads the current pressure in Pa.
| Parameters: | none – |
|---|---|
| Returns: | current pressure or -1 if no new data is available |
Read byte value from register.
| Parameters: |
|
|---|---|
| Returns: | byte read from register |
Read a byte array from the sensor.
| Parameters: |
|
|---|---|
| Returns: | array - Byte array |
Reads the current temperature in degrees Celcius.
| Parameters: | none – |
|---|---|
| Returns: | temp - Returns temperature as a float. |
Set the acquisition time step.
| Parameters: | ST_Value – Time Step value |
|---|---|
| Returns: | none |
Puts the sensor in standby mode. This is needed whenever one wants to modify the control registers.
| Parameters: | none – |
|---|---|
| Returns: | none |
| Parameters: | none – |
|---|---|
| Returns: | none |
Convert twos complement to integer.
| Parameters: |
|
|---|---|
| Returns: | complement - integer value of two’s complement |