LPS331 library forked with I2C address to 0xBA
Dependents: Skywire_Demo_3 Skywire_Kinetis_K64_demo Skywire_Demo Skywire_Demo
Fork of LPS331 by
Diff: LPS331.h
- Revision:
- 1:f70e671b008f
- Parent:
- 0:ef4f624dc3ec
- Child:
- 2:8a7744c5fb42
--- 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]; };