Treehopper C++ API
Lm75.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Libraries/Treehopper.Libraries.h
"
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
}
Treehopper::I2c
Base I2c interface.
Definition:
I2c.h:10
Treehopper::SMBusDevice
Definition:
SMBusDevice.h:7
SMBusDevice.h
I2c.h
Treehopper::Libraries::Sensors::Temperature::Lm75
Definition:
Lm75.h:13
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
Lm75.h