Treehopper C++ API
Bme280.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
HardwareI2c.h
>
4
#include <
Libraries/Sensors/Humidity/HumiditySensor.h
>
5
#include "
Libraries/Treehopper.Libraries.h
"
6
#include "
Bmp280.h
"
7
8
using namespace
Treehopper::Libraries::Sensors::Humidity
;
9
10
namespace
Treehopper
{
11
namespace
Libraries {
12
namespace
Sensors {
13
namespace
Pressure {
14
class
LIBRARIES_API
Bme280
:
public
Bmp280
,
public
HumiditySensor
{
15
public
:
16
Bme280
(
I2c
&i2c,
bool
sdoPin,
int
rate = 100);
17
18
void
update();
19
20
private
:
21
short
h4;
22
short
h5;
23
};
24
}
25
}
26
}
27
}
Treehopper::Libraries::Sensors::Humidity
Definition:
HumiditySensor.h:9
Treehopper::I2c
Base I2c interface.
Definition:
I2c.h:10
HardwareI2c.h
HumiditySensor.h
Bmp280.h
Treehopper::Libraries::Sensors::Pressure::Bme280
Definition:
Bme280.h:14
Treehopper::Libraries::Sensors::Humidity::HumiditySensor
Definition:
HumiditySensor.h:10
LIBRARIES_API
#define LIBRARIES_API
Definition:
Treehopper.Libraries.h:17
Treehopper
Definition:
AdcPin.h:3
Treehopper::Libraries::Sensors::Pressure::Bmp280
Definition:
Bmp280.h:20
Treehopper.Libraries.h
C++
API
inc
Libraries
Sensors
Pressure
Bme280.h