Treehopper C++ API
Mcp9808.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "I2c.h"
6 #include "SMBusDevice.h"
7 
8 namespace Treehopper {
9  namespace Libraries {
10  namespace Sensors {
11  namespace Temperature {
12  class LIBRARIES_API Mcp9808 : public virtual TemperatureSensor {
13  public:
14  Mcp9808(I2c &i2c, uint8_t address);
15 
16  Mcp9808(I2c &i2c, bool a0 = false, bool a1 = false, bool a2 = false);
17 
18  void update();
19 
20  protected:
21  SMBusDevice dev;
22  };
23  }
24  }
25  }
26 }
Base I2c interface.
Definition: I2c.h:10
Definition: SMBusDevice.h:7
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3