Treehopper C++ API
Mlx90614.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 <memory>
8 
9 namespace Treehopper {
10  namespace Libraries {
11  namespace Sensors {
12  namespace Temperature {
14  public:
15  class TempRegister : public virtual TemperatureSensor {
16  public:
17  TempRegister(SMBusDevice &dev, uint8_t reg);
18 
19  void update();
20 
21  private:
22  SMBusDevice &dev;
23  uint8_t reg;
24  };
25 
26  Mlx90614(I2c &i2c, int rate = 100);
27 
30 
31  protected:
32  SMBusDevice dev;
33  };
34  }
35  }
36  }
37 }
TempRegister ambient
Definition: Mlx90614.h:29
Base I2c interface.
Definition: I2c.h:10
Definition: SMBusDevice.h:7
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3
TempRegister object
Definition: Mlx90614.h:28