11/* !
22 * @file WipperSnapper_I2C_Driver_MLX90632.h
33 *
4- * Device driver for a Melexis MLX90632 thermal FIR sensor.
4+ * Device driver for a Melexis MLX90632-D (medical) thermal FIR sensor.
55 *
66 * Adafruit invests time and resources providing this open source code,
77 * please support Adafruit and open-source hardware by purchasing
2222
2323/* *************************************************************************/
2424/* !
25- @brief Sensor driver for the Melexis MLX90632 temperature sensor.
25+ @brief Sensor driver for the Melexis MLX90632-D temperature sensor.
2626*/
2727/* *************************************************************************/
28- class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
28+ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
2929public:
3030 /* ******************************************************************************/
3131 /* !
@@ -36,7 +36,7 @@ class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
3636 7-bit device address.
3737 */
3838 /* ******************************************************************************/
39- WipperSnapper_I2C_Driver_MLX90632 (TwoWire *i2c, uint16_t sensorAddress)
39+ WipperSnapper_I2C_Driver_MLX90632D (TwoWire *i2c, uint16_t sensorAddress)
4040 : WipperSnapper_I2C_Driver(i2c, sensorAddress) {
4141 _i2c = i2c;
4242 _sensorAddress = sensorAddress;
@@ -50,7 +50,7 @@ class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
5050 @brief Destructor for an MLX90632 sensor.
5151 */
5252 /* ******************************************************************************/
53- ~WipperSnapper_I2C_Driver_MLX90632 () { delete _mlx90632; }
53+ ~WipperSnapper_I2C_Driver_MLX90632D () { delete _mlx90632; }
5454
5555 /* ******************************************************************************/
5656 /* !
@@ -70,10 +70,12 @@ class WipperSnapper_I2C_Driver_MLX90632 : public WipperSnapper_I2C_Driver {
7070 /* ******************************************************************************/
7171 /* !
7272 @brief Configures the MLX90632 sensor and prints its information.
73+ @param extendedInsteadOfMedicalRange
74+ If true, configures the sensor for extended temperature range/acc.
7375 @returns True if configuration fetching and setting were successful.
7476 */
7577 /* ******************************************************************************/
76- bool ConfigureAndPrintSensorInfo () {
78+ bool ConfigureAndPrintSensorInfo (bool extendedInsteadOfMedicalRange = false ) {
7779 // Reset the device
7880 if (!_mlx90632->reset ()) {
7981 WS_PRINTER.println (F (" Device reset failed" ));
0 commit comments