SCH MME sensor test
Dependencies: mbed Adafruit_GFX
mlx90615.h@1:bbf8b08b8a20, 2019-11-06 (annotated)
- Committer:
- shinshingo
- Date:
- Wed Nov 06 09:06:56 2019 +0000
- Revision:
- 1:bbf8b08b8a20
- Parent:
- 0:28c89a4b6b69
comment;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shinshingo | 0:28c89a4b6b69 | 1 | #include "mbed.h" |
shinshingo | 0:28c89a4b6b69 | 2 | |
shinshingo | 0:28c89a4b6b69 | 3 | |
shinshingo | 0:28c89a4b6b69 | 4 | class MLX90615{ |
shinshingo | 0:28c89a4b6b69 | 5 | |
shinshingo | 0:28c89a4b6b69 | 6 | public: |
shinshingo | 0:28c89a4b6b69 | 7 | MLX90615(I2C* i2c,int addr=0xB6); |
shinshingo | 0:28c89a4b6b69 | 8 | bool getTemp(float* temp_val); |
shinshingo | 0:28c89a4b6b69 | 9 | bool getTempAmbient(float* temp_val); |
shinshingo | 0:28c89a4b6b69 | 10 | bool getRawIR(int16_t* ir_val); |
shinshingo | 0:28c89a4b6b69 | 11 | |
shinshingo | 0:28c89a4b6b69 | 12 | private: |
shinshingo | 0:28c89a4b6b69 | 13 | I2C* i2c; |
shinshingo | 0:28c89a4b6b69 | 14 | int i2caddress; |
shinshingo | 0:28c89a4b6b69 | 15 | |
shinshingo | 0:28c89a4b6b69 | 16 | }; |