Treehopper C++ API
Lm75.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 {
13  class LIBRARIES_API Lm75 : public virtual TemperatureSensor {
14  public:
15  Lm75(I2c &i2c, bool a0 = false, bool a1 = false, bool a2 = false);
16 
17  void update();
18 
19  private:
20  SMBusDevice dev;
21  };
22  }
23  }
24  }
25 }
Base I2c interface.
Definition: I2c.h:10
Definition: SMBusDevice.h:7
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3