lps331-barometer

xod-dev/st-mems/lps331-barometer

Reads temprature, pressure, altitude from a barometer based on LPS331 chip by STMicroelectronics. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
lps331-barometer
@/lps331-barometer
Reads temprature, pressure, altitude from a barometer based on LPS331 chip by STMicroelectronics. Possible errors: — Invalid I2C address — Data too long to fit in transmit buffer — Received NACK on transmit of address — Received NACK on transmit of data — Other error — No bytes written. Probably due to buffer overflow — Can't read the value
I2Cxod/i2c/i2c
ADDRbyte
I²C address.
UPDpulse
Triggers reading of the barometer values.
lps331-barometer
TcTcPpaPpaALTALTOKOKI2CI2CADDRADDRUPDUPD
OKpulse
Fires when reading is done
ALTnumber
Altitude above the sea level in meters.
Ppanumber
Pressure in pascals.
Tcnumber
Temperature in degrees C.
To use the node in your project you should have the xod-dev/st-mems library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.