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
UPDpulse
Triggers reading of the barometer values.
ADDRbyte
I²C address.
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.