1
1
/* !
2
2
* @file WipperSnapper_I2C_Driver_MLX90632.h
3
3
*
4
- * Device driver for a Melexis MLX90632 thermal FIR sensor.
4
+ * Device driver for a Melexis MLX90632-D (medical) thermal FIR sensor.
5
5
*
6
6
* Adafruit invests time and resources providing this open source code,
7
7
* please support Adafruit and open-source hardware by purchasing
22
22
23
23
/* *************************************************************************/
24
24
/* !
25
- @brief Sensor driver for the Melexis MLX90632 temperature sensor.
25
+ @brief Sensor driver for the Melexis MLX90632-D temperature sensor.
26
26
*/
27
27
/* *************************************************************************/
28
- class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
28
+ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
29
29
public:
30
30
/* ******************************************************************************/
31
31
/* !
@@ -36,7 +36,7 @@ class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
36
36
7-bit device address.
37
37
*/
38
38
/* ******************************************************************************/
39
- WipperSnapper_I2C_Driver_MLX90632 (TwoWire *i2c, uint16_t sensorAddress)
39
+ WipperSnapper_I2C_Driver_MLX90632D (TwoWire *i2c, uint16_t sensorAddress)
40
40
: WipperSnapper_I2C_Driver(i2c, sensorAddress) {
41
41
_i2c = i2c;
42
42
_sensorAddress = sensorAddress;
@@ -50,7 +50,7 @@ class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
50
50
@brief Destructor for an MLX90632 sensor.
51
51
*/
52
52
/* ******************************************************************************/
53
- ~WipperSnapper_I2C_Driver_MLX90632 () { delete _mlx90632; }
53
+ ~WipperSnapper_I2C_Driver_MLX90632D () { delete _mlx90632; }
54
54
55
55
/* ******************************************************************************/
56
56
/* !
@@ -70,10 +70,12 @@ class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
70
70
/* ******************************************************************************/
71
71
/* !
72
72
@brief Configures the MLX90632 sensor and prints its information.
73
+ @param extendedInsteadOfMedicalRange
74
+ If true, configures the sensor for extended temperature range/acc.
73
75
@returns True if configuration fetching and setting were successful.
74
76
*/
75
77
/* ******************************************************************************/
76
- bool ConfigureAndPrintSensorInfo () {
78
+ bool ConfigureAndPrintSensorInfo (bool extendedInsteadOfMedicalRange = false ) {
77
79
// Reset the device
78
80
if (!_mlx90632->reset ()) {
79
81
WS_PRINTER.println (F (" Device reset failed" ));
0 commit comments