LPS331 library
See https://developer.mbed.org/users/yasuyuki/notebook/LPS331/
Diff: LPS331.h
- Revision:
- 1:f70e671b008f
- Parent:
- 0:ef4f624dc3ec
diff -r ef4f624dc3ec -r f70e671b008f LPS331.h --- a/LPS331.h Sat Oct 04 12:02:25 2014 +0000 +++ b/LPS331.h Fri Oct 10 04:37:48 2014 +0000 @@ -44,12 +44,14 @@ void put(unsigned char a, unsigned char b); void get(unsigned char a); long value(); + short temperature(); protected: I2C _i2c; DWORD_VAL press; + WORD_VAL temp; char buf[2]; };