Treehopper C++ API
Mcp9808.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Libraries/Treehopper.Libraries.h
"
4
#include "
Libraries/Sensors/Temperature/TemperatureSensor.h
"
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
}
Treehopper::I2c
Base I2c interface.
Definition:
I2c.h:10
Treehopper::SMBusDevice
Definition:
SMBusDevice.h:7
SMBusDevice.h
I2c.h
Treehopper::Libraries::Sensors::Temperature::Mcp9808
Definition:
Mcp9808.h:12
TemperatureSensor.h
LIBRARIES_API
#define LIBRARIES_API
Definition:
Treehopper.Libraries.h:17
Treehopper
Definition:
AdcPin.h:3
Treehopper::Libraries::Sensors::Temperature::TemperatureSensor
Definition:
TemperatureSensor.h:12
Treehopper.Libraries.h
C++
API
inc
Libraries
Sensors
Temperature
Mcp9808.h