Treehopper C++ API
Mlx90615.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "TemperatureSensor.h"
5 #include "I2c.h"
6 #include "SMBusDevice.h"
7 #include "Mlx90614.h"
8 #include <memory>
9 
10 namespace Treehopper {
11  namespace Libraries {
12  namespace Sensors {
13  namespace Temperature {
15  public:
16  Mlx90615(I2c &i2c, int rate = 100) :
17  dev(0x5b, i2c, rate),
18  ambient(dev, 0x26),
19  object(dev, 0x27) {}
20 
23  protected:
24  SMBusDevice dev;
25  };
26  }
27  }
28  }
29 }
Mlx90614::TempRegister ambient
Definition: Mlx90615.h:22
Base I2c interface.
Definition: I2c.h:10
Definition: SMBusDevice.h:7
Mlx90614::TempRegister object
Definition: Mlx90615.h:21
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3
Mlx90615(I2c &i2c, int rate=100)
Definition: Mlx90615.h:16